install-hooks.sh 248 B

123456
  1. #!/usr/bin/env bash
  2. if test -e .git/hooks; then
  3. ln -sf ../../build/git-hooks/pre-commit .git/hooks/pre-commit && chmod +x .git/hooks/pre-commit
  4. ln -sf ../../build/git-hooks/commit-msg .git/hooks/commit-msg && chmod +x .git/hooks/commit-msg
  5. fi