Arquivo de leitura de bash errado

#Possible solution
sed -i 's/\r//g' script.sh
#Just execute command above to fix problem replacing script name for yours ;)
Hurt Hare