2020-09-07 2020-09-07 Shell Script寫了一段 Shellif [[ $a!= $b || $c != $d ]]; then在不同功能的 Container 下執行時,碰到以下錯誤[[: not found爬文發現 [[ ]] 在 sh 下運行會有問題,但該 container 沒有 bash,故需改寫為if [ $a != $b ] || [ $c != $d ]; then來源:String comparison in bash. [[: not found