Share shell script: file permissions question I'm on Mountain Lion 10.8.5 and recently I've made a small shell script which just shows a message on the screen. To run it, I had run

chmod +x test-script.sh


and then using sh ./test-script.sh ran it successfully. So if I want to send this to friends, do they have to run chmod again? If so, how can I prevent it?
You can instruct your friends to run it using sh ./test-script.sh. That would not require a chmod +x to be done.

If your friends also use OS X, another alternative is to package it as an app with Automator using the Run Shell Script action and share that with your friends. In this case the user can run it just like any other application on the system.

See Creating Shell Script Actions in the Automator Programming Guide.