[z -y] nie jest rozumiane w połączeniu z innymi opcjami

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