If you try to execute a bash script and get the following error, it basically means the file created on a Window's machine:

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

$ brew install dos2unix

$ dos2unix <file_name>