1
1
Fork 0
mirror of https://github.com/pbatard/rufus.git synced 2024-08-14 23:57:05 +00:00
rufus/_set_git_hooks.sh
Pete Batard 6d7a938058 [internal] update hooks to remove automated tagging
* Also update AppVeyor builds wrt the above
2018-10-19 14:36:48 +01:00

12 lines
405 B
Bash
Executable file

#!/bin/sh
# Sets the git hooks on a new git development system
if [ -e ".git/hooks/pre-commit" ]; then
echo 'pre-commit git hook is already set, aborting.'
exit
fi
echo 'Creating pre-commit git hook...'
echo '#!/bin/sh' > .git/hooks/pre-commit
echo 'if [ -x ./_pre-commit.sh ]; then' >> .git/hooks/pre-commit
echo ' . ./_pre-commit.sh' >> .git/hooks/pre-commit
echo 'fi' >> .git/hooks/pre-commit