Tips on writing shell scripts on mac

To see which shell is being used: echo $0

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