There's an explanation here:
https://apple.stackexchange.com/questions/101170/why-do-i-need-to-put-sh-before-running-sh-files
There's an explanation here:
https://apple.stackexchange.com/questions/101170/why-do-i-need-to-put-sh-before-running-sh-files