I am making this code for a minecraft server plugin updater
I am a new shell scripter so I don\'t know alot...
when I run this code I get a error:
#!/bin
It's because of file formatting. I faced the same problem. Just create another file with (.sh) extensions using gedit. Then paste the code into the new document. Hope this will resolve the issue.
gedit file-name.sh
I have met the same problem. And the problem is the format of the file is "dos", but in linux shell requires "unix", so I install the "dos2unix"
$ sudo apt-get install dos2unix
or if you use emacs, you can do this:
C-x RET f unix
Good luck :)
then^M
with a carriage return on the end. If you don't have dos2unix then try running this command: sed -i 's/\r$//' filename