diff options
| author | varac <varacanero@zeromail.org> | 2016-06-16 16:50:05 +0200 |
|---|---|---|
| committer | varac <varacanero@zeromail.org> | 2016-06-16 16:50:05 +0200 |
| commit | b361c37573eba4472bafafb8d6a4ee1a34efda93 (patch) | |
| tree | c70834c5ba5607543a1d121ae6ca8143b37628dc | |
| parent | 7761642c8b288840c9afc385a0982a2e4f873818 (diff) | |
break on unaccepted branch
| -rwxr-xr-x | buildscripts/build-on-greyhound.sh | 6 |
1 files changed, 5 insertions, 1 deletions
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 |
