From 2c45daabe912a187d7cf846c8139b3c9bb92b437 Mon Sep 17 00:00:00 2001 From: lionel <> Date: Tue, 27 Sep 2022 16:35:38 +0200 Subject: [PATCH] Exit on error --- make.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/make.sh b/make.sh index a4e0cf6..c940621 100755 --- a/make.sh +++ b/make.sh @@ -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'