You may get an error when execute shell script in linux based system, 

# ./

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

You need to check the file using UNIX line ending or can use dos2unix command to change the file format. If you can not found the command install it.
# yum install dos2unix

# dos2unix
dos2unix: converting file to UNIX format ...