What is wrong with it?

Apparently it is this way because of the text editor that was used to make it.

How to fix bad interpreter

Go to your Shinobi directory and run the following line of code from terminal.

sed -i 's/\r//' UPDATE.sh

Then make it executable and you are good to go.

chmod +x UPDATE.sh