Remova o retorno do carro no Linux

sed -i -e 's/\r$//' NAME-OF-FILE.sh
Lazy Lizard