Created
January 27, 2018 19:00
-
-
Save jdell64/38a3624acccfcbf11f3e357a2a1685d4 to your computer and use it in GitHub Desktop.
pre commit check to see if version file was updated.
This file contains 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
exec git diff --name-only origin/$(git rev-parse --abbrev-ref HEAD) | grep -v *.py | if grep --quiet version | |
then | |
echo "Version was updated in this commit" | |
else | |
echo "Version was not updated in this commit" | |
exit 17 | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
removes the py file because that is my version bumper script.