From 2ffff339c5515280a1926d2ee134d5d2c7cdbcfc Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Tue, 23 Apr 2019 08:49:46 +0200 Subject: Makefile: proper handle 'make iso' error codes --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 3bfa9597..628574e2 100644 --- a/Makefile +++ b/Makefile @@ -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 -- cgit v1.2.3