From 4bd5f0903fb0e626016be3355bf0dfb53ac6703c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20Ma=CC=88der?= Date: Fri, 6 Apr 2018 11:15:39 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9E=20Fix=20building=20all=20branches?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build-branches.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/build-branches.sh b/build-branches.sh index e8e75d7..0e28363 100755 --- a/build-branches.sh +++ b/build-branches.sh @@ -9,8 +9,10 @@ CURL="curl -sS" BRANCHES=$($CURL "${URL_RELEASES}" | jq -r 'map(.name) | .[] | scan("^[^v].+")') +ERROR=0 + for BRANCH in $BRANCHES; do # shellcheck disable=SC2068 - ./build.sh "${BRANCH}" $@ - exit $? + ./build.sh "${BRANCH}" $@ || ERROR=1 done +exit $ERROR