From 59ff941e9acb6e99d7dd471911a6c713b5bedc32 Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Fri, 11 Jan 2019 07:40:59 +0100 Subject: build-submodules: exit script with proper exit code for Pipeline --- scripts/build-submodules | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'scripts') diff --git a/scripts/build-submodules b/scripts/build-submodules index d58a84c8..81bedf4a 100755 --- a/scripts/build-submodules +++ b/scripts/build-submodules @@ -160,6 +160,10 @@ for PKG in mdns-repeater \ vyos-world \ ; do build_package "$PKG" + ERRCODE=$? + if [ "$ERRCODE" -ne "0" ]; then + exit $ERRCODE + fi done @@ -192,6 +196,10 @@ build_kernel() { status_ok } build_kernel +ERRCODE=$? +if [ "$ERRCODE" -ne "0" ]; then + exit $ERRCODE +fi # WIREGUARD @@ -236,7 +244,10 @@ build_wireguard() { status_ok } build_wireguard - +ERRCODE=$? +if [ "$ERRCODE" -ne "0" ]; then + exit $ERRCODE +fi # ACCEL-PPP build_accel-ppp() { @@ -279,3 +290,7 @@ build_accel-ppp() { status_ok } build_accel-ppp +ERRCODE=$? +if [ "$ERRCODE" -ne "0" ]; then + exit $ERRCODE +fi -- cgit v1.2.3