Created
November 6, 2015 17:02
-
-
Save oafridi/b0cece38c945023e4c86 to your computer and use it in GitHub Desktop.
pre commit to run multiple pre commit scripts
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
#!/bin/sh | |
for hook in "pre-commit-byebug" "pre-commit-rspec"; | |
do | |
sh "$(pwd)/.git/hooks/$hook" | |
if [ $? -ne 0 ]; then | |
exit 1 | |
fi | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment