Trying to run some .sh scripts in a very cut down Ubuntu installation, but I'm getting messages of the following style:
./my_script: 61: [[: not found
./my_script: 61: ==: not found
./my_script: 61: ==: not found
./my_script: 61: ==: not found
./my_script: 67: [[: not found
./my_script: 73: [[: not found
There is obviously something not quite right :)
The script starts with:
#!/bin/sh
Edit
It runs ok if I start it like this:
bash ./my_script
Edit 2
Sorry, that was a stupid question without some more explanation :) This script works fine, unchanged, on some RHEL machines - what do I need to change on the Ubuntu box to get the script to work, without modifying the script?