Commit 1837cf10 authored by Guido Gunther's avatar Guido Gunther

Merge branch 'exit-error' into 'master'

root.sh: Make sure we return 1 on errors

See merge request !54
parents 18692e80 b13b174e
Pipeline #2412 passed with stage
in 13 seconds
......@@ -107,8 +107,10 @@ function cleanup_chroot()
umount "${basedir}/proc"
# existence of stamp indicates success
if [ -f "${stamp}" ] && [ -n "${build_tarball}" ]; then
build_tarball
if [ -f "${stamp}" ]; then
[ -z "${build_tarball}" ] || build_tarball
else
exit 1
fi
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment