[Shell Script] /bin/bash^M: bad interpreter: No such file or directory
When I executed a shell script, an error occurred.
/bin/bash^M: bad interpreter: No such file or directory
The cause seemed to be that it was using Windows line endings (CR/LF).
Converting to Linux line endings (LF) allowed it to execute normally.
【Reference】
・シェルを実行できない失敗例「/bin/bash^M: bad interpreter: No such file or directory」の原因と解決策 - r_nobuホームページ
That’s all from the Gemba.