Created
September 18, 2019 09:49
-
-
Save imolorhe/975bc67b5600483170f5c5bd1fd38615 to your computer and use it in GitHub Desktop.
My Git hooks
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
SRC_PATTERN="site/assets/js/" | |
if git diff --cached --name-only | grep --quiet "$SRC_PATTERN" | |
then | |
echo "none" | |
exit 0 | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment