Start your bash scripts with this:
set -euo pipefail
-e exits on the first failed command, -u errors on unset variables, and -o pipefail makes a pipeline fail if any stage fails, not just the last one.commit 7044981