From 409f740623e34228ae80952f10900d98b3eb838b Mon Sep 17 00:00:00 2001 From: Peter Keresztes Schmidt Date: Mon, 24 Aug 2020 21:34:28 +0200 Subject: [PATCH] CI: Make sure the Travis build fails if packpack exits with an error code --- utils/packpack/startpackpack.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/utils/packpack/startpackpack.sh b/utils/packpack/startpackpack.sh index 6a51e2995..f8d8e6eb9 100755 --- a/utils/packpack/startpackpack.sh +++ b/utils/packpack/startpackpack.sh @@ -1,4 +1,7 @@ #!/bin/bash + +set -o pipefail + # packpack setup file for the ZoneMinder project # Written by Andrew Bauer @@ -250,6 +253,13 @@ execpackpack () { else packpack/packpack $parms fi + + if [ $? -ne 0 ]; then + echo + echo "ERROR: An error occurred while executing packpack." + echo + exit 1 + fi } # Check for connectivity with the deploy target host