diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-12-15 22:40:32 +0100 |
---|---|---|
committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-12-19 22:14:22 +0100 |
commit | 50904ca05e12a791de8ab2bbf06f404b61663a07 (patch) | |
tree | 9d84bef505ee357529f41828563e390a8a96d8b5 | |
parent | 02d8f7ddc561b5edd7f47b1e0d84184b7ae53365 (diff) | |
download | gitlab-ce-fail-build-on-non-master.tar.gz |
Fix scriptfail-build-on-non-master
-rwxr-xr-x | scripts/fail-build-if-not-head.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/fail-build-if-not-head.sh b/scripts/fail-build-if-not-head.sh index dc6ae6b07a1..ada92d7b0d5 100755 --- a/scripts/fail-build-if-not-head.sh +++ b/scripts/fail-build-if-not-head.sh @@ -1,7 +1,7 @@ #!/bin/sh # accept master -if [ "$CI_BUILD_REF_NAME" == "master" ]; then +if [ "$CI_BUILD_REF_NAME" -eq "master" ]; then exit 0 fi |