Two stages:
1. Make the .sh file executable
2. Run it from the command line.
Make the .sh file executable- In Terminal.app, type chmod +x and leave a space after it,
- drag the .sh file from a Finder window into the Terminal window,
- hit the enter key to add the x (executable) attribute to the .sh file.
Run it from the command line- Again, drag the .sh file into the Terminal window, to get its full path, and
- hit the enter key to run it.
- Make a note of any error messages which appear.