Cause chroot buildscript to exit with error
If a build fails, exit the script with an error. This also prevents namcap from being called if there is no build package Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
This commit is contained in:
parent
5dbb964d66
commit
e03dfc4665
|
@ -214,6 +214,7 @@ export LANG=$LOCALE
|
|||
cd /build
|
||||
export HOME=/build
|
||||
sudo -u nobody makepkg $MAKEPKG_ARGS || touch BUILD_FAILED
|
||||
[ -f BUILD_FAILED ] && exit 1
|
||||
which namcap 2>&1 >/dev/null && namcap *${PKGEXT} > /pkgdest/namcap.log
|
||||
exit 0
|
||||
EOF
|
||||
|
|
Loading…
Reference in New Issue