Closed DylanDelobel closed 5 years ago
It appears that this might occur when you open the file on a windows machine and some of the line encoding change. The command above does indeed fix this. Just be careful not to open the files on Windows before moving it to the linux instance!
File transfered by filezilla from Windows
bash: ./autoshutdown.sh: /bin/sh^M: bad interpreter: No such file or directory
From StackOverflow
I've run
sed -i -e 's/\r$//' autoshutdown.sh
and that worked