trevor-laher / OnDemandMinecraft

An AWS hosted Minecraft server that will only run when players are active. Players can start the server through a simple UI accessed through free Heroku server hosting.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

autoshutdown.sh bad interpreter

DylanDelobel opened this issue · comments

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

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!