Exit with a better error code

OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/appstream-glib?expand=0&rev=50
This commit is contained in:
Dominique Leuenberger 2017-09-15 14:56:36 +00:00 committed by Git OBS Bridge
parent 2b59c5d528
commit a50541894b

View File

@ -19,9 +19,11 @@ TMPDIR=$(mktemp -d)
--packages-dir=${SRC} \
--output-dir=${DEST}
if [ $? -ne 0 ]; then
RET=$?
if [ $RET -ne 0 ]; then
# The appstream-builder failed, exit with an error code, so prod builder knows about it
exit 1
exit $RET
fi
# clean up TMPDIR again