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

Simply fix that error with this command:

sed -i 's/\r//' /path/to/script.sh

More Related Posts