Whereas sh is not always bash.
For example, on my Pi box:
- Code: Select all
pi@dns1:~ $ which bash
pi@dns1:~ $ ls -la /bin/bash
-rwxr-xr-x 1 root root 863400 Oct 18 2014 /bin/bash
pi@dns1:~ $ which sh
pi@dns1:~ $ ls -la /bin/sh
lrwxrwxrwx 1 root root 4 Jan 1 1970 /bin/sh -> dash
You can see that sh redirects to dash (which is different to bash).
Perpahs change the first line of your script to: