All of my bash shell scripts start like
#!/bin/bash
set -eu
Why? Safety. -e means bash will exit if any of the commands it runs returns an unhandled error. -u means unset environment variables are errors. It's a little safety net for shell scripting.
tech
  2011-10-11 21:19 Z