본문 바로가기

Error

[Linux/Ubuntu] ^M bad interpreter 에러

 

 

https://m.blog.naver.com/muri1004/220690434778

 

[에러] ^M bad interpreter 에러 해결 방법

bash 스크립트 파일을 실행하려는데 에러가 난다. 에러메세지 $ ./run.sh bash: ./run.sh: /bin/bash^M: b...

blog.naver.com

위 블로그에서 해당내용을 찾아서, 문제를 해결하였음.

 

 

window에서 만든 파일의 맨 마지막에 ^M이 들어감.

Ubuntu내에서 shell script를 만들어서 실행하니 문제가 해결됨.