/bin/sh^M: bad interpreter: No such file or directory
Apparently if a shell script gets opened and saved in notepad it will not run anymore.
A simple “dos2unix xxx.sh” fixed the problem.
======================================================
後記
想偷懶,用複製貼上的方式編寫shell-scripts,別忘了要轉換格式ㄟ
請先 登入 以發表留言。