Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- HOOKS="pre-commit-prevent-master pre-commit-prevent-development"
- for hook in $HOOKS; do
- if [ -f "$PWD/.git/hooks/$hook" ]; then
- "$PWD/.git/hooks/$hook"
- if [ $? != 0 ]; then
- exit 1
- fi
- else
- echo "Error: file $hook not found."
- exit 1
- fi
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement