Skip to content

Instantly share code, notes, and snippets.

@fuxx
Created June 14, 2017 08:58
Show Gist options
  • Save fuxx/dd76965596b35bd25a189254558c45d2 to your computer and use it in GitHub Desktop.
Save fuxx/dd76965596b35bd25a189254558c45d2 to your computer and use it in GitHub Desktop.
No master
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