From 46543f54a6edfb4c3af9be0d15a472623a8f051c Mon Sep 17 00:00:00 2001 From: Eric Seppanen Date: Tue, 13 Apr 2021 11:43:54 -0700 Subject: [PATCH] pgbuild.sh: halt if a subcommand fails This is helpful when first setting up a build machine, just in case build dependencies are missing. --- pgbuild.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pgbuild.sh b/pgbuild.sh index 0514a5868a..9d4c0baa65 100755 --- a/pgbuild.sh +++ b/pgbuild.sh @@ -10,6 +10,10 @@ # # 2) installs postgres to REPO_ROOT/tmp_install/ # + +# Halt immediately if any command fails +set -e + REPO_ROOT=$(dirname "$0") REPO_ROOT="`( cd \"$REPO_ROOT\" && pwd )`"