Hi, I think you want to change the shell interpreter in the shebang of imageSwitch.sh to #/bin/bash or #/usr/bin/bash (instead of #/bin/sh). The classic bourne 'sh' shell does e.g. not know the array syntax you're using in line 17.
Anyway nice work. Thanks for the script :)
Hi, I think you want to change the shell interpreter in the shebang of imageSwitch.sh to #/bin/bash or #/usr/bin/bash (instead of #/bin/sh). The classic bourne 'sh' shell does e.g. not know the array syntax you're using in line 17. Anyway nice work. Thanks for the script :)