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:
parent
2b59c5d528
commit
a50541894b
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user