Created
June 14, 2017 08:58
-
-
Save fuxx/dd76965596b35bd25a189254558c45d2 to your computer and use it in GitHub Desktop.
No master
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set -e | |
BRANCH=$(git rev-parse --abbrev-ref HEAD) | |
if [[ "$BRANCH" = "master" ]]; then | |
echo ============================================= | |
echo == Wont build - $BRANCH is a ignored branch. | |
echo ============================================= | |
exit -1 | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment