-sh Permission denied

Please run it as sh scriptname.sh as mentioned on our FAQ section.