summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-02-09 13:25:06 +0100
committerChristian Poessinger <christian@poessinger.com>2020-02-09 13:25:06 +0100
commit240f036655e7b1dda7ae576fe5541442afd6e11b (patch)
tree78ce456d0663cfbeae00554071ec98e21060faed /Makefile
parent57e4de4a7c6785dabd1f0e1641783b1df350f738 (diff)
downloadvyos-build-240f036655e7b1dda7ae576fe5541442afd6e11b.tar.gz
vyos-build-240f036655e7b1dda7ae576fe5541442afd6e11b.zip
Makefile: user pipefail in iso build
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 2bceac58..5e3d3fc6 100644
--- a/Makefile
+++ b/Makefile
@@ -27,12 +27,13 @@ prepare:
.PHONY: iso
.ONESHELL:
iso: check_build_config clean prepare
- @set -e
@echo "It's not like I'm building this specially for you or anything!"
cd $(build_dir)
- lb build 2>&1 | tee build.log
+ set -o pipefail
+ lb build 2>&1 | tee build.log; if [ $$? -ne 0 ]; then exit 1; fi
cd ..
@scripts/copy-image
+ exit 0
.PHONY: prepare-package-env
.ONESHELL: