Privilege Issues and Executing a Bash Script

email me

When trying to execute a shell script (as in bash) on OS X—or other Linux/Unix based system—you will notice that the script fails due to privileges. What you need to do is add the ability for the script to execute. To do this, run the following from a terminal window:

chmod +x TheShellScript.sh

Now, trying executing the script again.