/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,別忘了要轉換格式ㄟ

創作者介紹
創作者 胡言亂語之GOSSIPY SPACE 的頭像
gossipy

胡言亂語之GOSSIPY SPACE

gossipy 發表在 痞客邦 留言(0) 人氣( 29 )