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
ca60a9b2a8
commit
4d60792d2d
@ -19,9 +19,11 @@ TMPDIR=$(mktemp -d)
|
|||||||
--packages-dir=${SRC} \
|
--packages-dir=${SRC} \
|
||||||
--output-dir=${DEST}
|
--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
|
# The appstream-builder failed, exit with an error code, so prod builder knows about it
|
||||||
exit 1
|
exit $RET
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# clean up TMPDIR again
|
# clean up TMPDIR again
|
||||||
|
Loading…
x
Reference in New Issue
Block a user