Add set -e and set -o pipefail to shell scripts.