Skip to content

Commit

Permalink
Fix git hook install script
Browse files Browse the repository at this point in the history
  • Loading branch information
hasufell committed Mar 12, 2017
1 parent 1fa65b2 commit 3e9665d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmake/scripts/install-git-hook.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/bin/sh

if [ -f .githooks/pre-commit ] &&
[ -d .git ] &&
[ ! -f .git/hooks/pre-commit ]; then
cp -p .githooks/pre-commit .git/hooks/pre-commit &&
chmod +x .git/hooks/pre-commit &&
Expand Down

0 comments on commit 3e9665d

Please sign in to comment.