Created
July 17, 2015 09:06
-
-
Save loa/48ecc1eb4f343d167b94 to your computer and use it in GitHub Desktop.
Bash verify Git Head is not tagged release
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
#!/bin/bash | |
git tag --contains HEAD | grep -q "v.*" && { | |
echo "HEAD is already tagged release." | |
} || { | |
echo "HEAD is not a tagged release." | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment