Makefile: proper handle 'make iso' error codes

This commit is contained in:
Christian Poessinger 2019-04-23 08:49:46 +02:00
parent 89a0214f24
commit 2ffff339c5

View File

@ -28,9 +28,13 @@ prepare:
.ONESHELL:
iso: check_build_config clean prepare
@set -e
@set -o pipefail
@echo "It's not like I'm building this specially for you or anything!"
cd $(build_dir)
lb build 2>&1 | tee build.log
if [ "$?" != "0" ]; then
exit 1
fi
cd ..
@scripts/copy-image