Tips on writing shell scripts on mac

To make a shell script executable run chmod 755 myscript.sh or chmod +x myscript.sh in terminal.