Exit on error
This commit is contained in:
parent
73a00b82b8
commit
2c45daabe9
3
make.sh
3
make.sh
@ -150,9 +150,11 @@ _build()
|
|||||||
|
|
||||||
printf "\e[96mBootstrap new root filesystem\e[0m\n"
|
printf "\e[96mBootstrap new root filesystem\e[0m\n"
|
||||||
lb bootstrap
|
lb bootstrap
|
||||||
|
[[ $? -eq 0 ]] || exit
|
||||||
|
|
||||||
printf "\e[96mBuild live OS file system\e[0m\n"
|
printf "\e[96mBuild live OS file system\e[0m\n"
|
||||||
lb chroot
|
lb chroot
|
||||||
|
[[ $? -eq 0 ]] || exit
|
||||||
|
|
||||||
# Write commit hash and build date
|
# Write commit hash and build date
|
||||||
echo "$(git -C $baseDir log -1 --pretty='%cd %h %s' --date=format:"%F")" >> $build/chroot/etc/debian_version
|
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"
|
printf "\e[96mPreparing root filesystem\e[0m\n"
|
||||||
lb binary_chroot
|
lb binary_chroot
|
||||||
|
[[ $? -eq 0 ]] || exit
|
||||||
|
|
||||||
# Chroot preparation component lists
|
# Chroot preparation component lists
|
||||||
# We deliberately exclude 'debianchroot'
|
# We deliberately exclude 'debianchroot'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user