Some of my bash scripts were not running with the following error:
$ ./test-script.sh -bash: ./test-script.sh: /bin/bash^M: bad interpreter: No such file or directory
After some googling, it turned out that on Linux host script files should have a specific line break(LF), and using default Windows (CRLF) is not supported.