Skip to content

Instantly share code, notes, and snippets.

@oafridi
Created November 6, 2015 17:02
Show Gist options
  • Save oafridi/b0cece38c945023e4c86 to your computer and use it in GitHub Desktop.
Save oafridi/b0cece38c945023e4c86 to your computer and use it in GitHub Desktop.
pre commit to run multiple pre commit scripts
#!/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