Exit on error

This commit is contained in:
lionel 2022-09-27 16:35:38 +02:00 committed by toto
parent 73a00b82b8
commit 2c45daabe9

View File

@ -150,9 +150,11 @@ _build()
printf "\e[96mBootstrap new root filesystem\e[0m\n"
lb bootstrap
[[ $? -eq 0 ]] || exit
printf "\e[96mBuild live OS file system\e[0m\n"
lb chroot
[[ $? -eq 0 ]] || exit
# Write commit hash and build date
echo "$(git -C $baseDir log -1 --pretty='%cd %h %s' --date=format:"%F")" >> $build/chroot/etc/debian_version
@ -164,6 +166,7 @@ _create_squashfs()
printf "\e[96mPreparing root filesystem\e[0m\n"
lb binary_chroot
[[ $? -eq 0 ]] || exit
# Chroot preparation component lists
# We deliberately exclude 'debianchroot'