CI: Make sure the Travis build fails if packpack exits with an error code

pull/3019/head
Peter Keresztes Schmidt 2020-08-24 21:34:28 +02:00
parent 41c1774e4a
commit 409f740623
1 changed files with 10 additions and 0 deletions

View File

@ -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