pgbuild.sh: halt if a subcommand fails

This is helpful when first setting up a build machine, just in case
build dependencies are missing.
This commit is contained in:
Eric Seppanen
2021-04-13 11:45:27 -07:00
parent b07fa4c896
commit 46543f54a6
+4
View File
@@ -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 )`"