Merge pull request #3019 from Carbenium/ci-packpack-exit-code

CI: Make sure the Travis build fails if packpack exits with an error code
This commit is contained in:
Isaac Connor 2020-08-24 18:06:59 -04:00 committed by GitHub
commit 6e32e86f10
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 0 deletions

View File

@ -1,4 +1,7 @@
#!/bin/bash #!/bin/bash
set -o pipefail
# packpack setup file for the ZoneMinder project # packpack setup file for the ZoneMinder project
# Written by Andrew Bauer # Written by Andrew Bauer
@ -250,6 +253,13 @@ execpackpack () {
else else
packpack/packpack $parms packpack/packpack $parms
fi 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 # Check for connectivity with the deploy target host