錯誤: shell腳本中含有source命令運行時提示 source: not foundshell
測試: 運行 ls -l /bin/sh 後顯示/bin/sh -> dash 這說明是用dash來進行解析的。bash
ls -l /bin/sh
解決方案: 命令行執行:dpkg-reconfigure dash(須要root權限) 在界面中選擇no 再運行ls -l /bin/sh 後顯示/bin/sh -> bash測試
dpkg-reconfigure dash