UPDATE.sh /bin/sh^M : bad interpreter

Shinobi Systems
1 min readJul 24, 2018

Sometimes the UPDATE.sh file is not executable and gives an error when trying to use it.

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

--

--

Shinobi Systems

Building technology for the people. Official site not up yet but you can check out Shinobi Systems' prize child. Shinobi CCTV https://shinobi.video