Commit b13b174e authored by Guido Gunther's avatar Guido Gunther

root.sh: Make sure we return 1 on errors

The cleanup function might return 0. Check for the stamp to avoid that.
This makes the build fail if not all packages are available for
installation.
parent 18692e80
......@@ -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