Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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