mirror of
https://github.com/vyos/vyos-build.git
synced 2025-10-01 20:28:40 +02:00
Makefile: proper handle 'make iso' error codes
This commit is contained in:
parent
89a0214f24
commit
2ffff339c5
4
Makefile
4
Makefile
@ -28,9 +28,13 @@ prepare:
|
|||||||
.ONESHELL:
|
.ONESHELL:
|
||||||
iso: check_build_config clean prepare
|
iso: check_build_config clean prepare
|
||||||
@set -e
|
@set -e
|
||||||
|
@set -o pipefail
|
||||||
@echo "It's not like I'm building this specially for you or anything!"
|
@echo "It's not like I'm building this specially for you or anything!"
|
||||||
cd $(build_dir)
|
cd $(build_dir)
|
||||||
lb build 2>&1 | tee build.log
|
lb build 2>&1 | tee build.log
|
||||||
|
if [ "$?" != "0" ]; then
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
cd ..
|
cd ..
|
||||||
@scripts/copy-image
|
@scripts/copy-image
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user