From b361c37573eba4472bafafb8d6a4ee1a34efda93 Mon Sep 17 00:00:00 2001 From: varac Date: Thu, 16 Jun 2016 16:50:05 +0200 Subject: break on unaccepted branch --- buildscripts/build-on-greyhound.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/buildscripts/build-on-greyhound.sh b/buildscripts/build-on-greyhound.sh index 8c9e6fe..93d6bd9 100755 --- a/buildscripts/build-on-greyhound.sh +++ b/buildscripts/build-on-greyhound.sh @@ -5,7 +5,11 @@ branch=$1 ACCEPTED_BRANCHES='(develop|citest)' -[[ $branch =~ $ACCEPTED_BRANCHES ]] || ( echo "CI builds only possible for these branches: $ACCEPTED_BRANCHES "; exit 1) +if [[ ! $branch =~ $ACCEPTED_BRANCHES ]] +then + echo "CI builds only possible for these branches: $ACCEPTED_BRANCHES " + exit 1 +fi . /etc/leap/rewire_${branch}.cfg . /etc/leap/platform-test-common.cfg -- cgit v1.2.3