summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2019-01-11 07:40:59 +0100
committerChristian Poessinger <christian@poessinger.com>2019-01-11 07:40:59 +0100
commit59ff941e9acb6e99d7dd471911a6c713b5bedc32 (patch)
treed026378cc80db29b087f332781863654a9c26a4a
parent041bc80e71c3c700ff0c01702d9ffd0885d2b75b (diff)
downloadvyos-build-59ff941e9acb6e99d7dd471911a6c713b5bedc32.tar.gz
vyos-build-59ff941e9acb6e99d7dd471911a6c713b5bedc32.zip
build-submodules: exit script with proper exit code for Pipeline
-rwxr-xr-xscripts/build-submodules17
1 files changed, 16 insertions, 1 deletions
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