Scripting tips

  • set -e: stop on errors
  • set -u: stop on unset $VARS
  • set -o pipefail: stop on | fail