Bash script and /bin/bash^M: bad interpreter: No such file or directory

 Bash script and /bin/bash^M: bad interpreter: No such file or directory - Stack Overflow

Run following command in terminal

sed -i -e 's/\r$//' scriptname.sh

Then try

./scriptname.sh

It should work.

Không có nhận xét nào:

Cold Turkey Blocker

 https://superuser.com/questions/1366153/how-to-get-rid-of-cold-turkey-website-blocker-get-around-the-block Very old question, but still wan...