Error running .sh file
If you get this type of error :
-bash: ./myfile.sh: /bin/bash^M: bad interpreter: No such file or directory
cause : it’s probably because you have opened the .sh file in windows
solution : from a terminal: sed -i -e 's/\r$//' myfile.sh