Skip to content

Commit

Permalink
chore: fix setup script (#7364)
Browse files Browse the repository at this point in the history
  • Loading branch information
jkzing authored and yyx990803 committed Jan 2, 2018
1 parent 6be9fdb commit 400aa65
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ const { test, ln, chmod } = require('shelljs')

function installHooks () {
if (test('-e', '.git/hooks')) {
ln('-sf', '../../build/git-hooks/pre-commit', '.git/hooks/pre-commit')
ln('-sf', '../../scripts/git-hooks/pre-commit', '.git/hooks/pre-commit')
chmod('+x', '.git/hooks/pre-commit')
ln('-sf', '../../build/git-hooks/commit-msg', '.git/hooks/commit-msg')
ln('-sf', '../../scripts/git-hooks/commit-msg', '.git/hooks/commit-msg')
chmod('+x', '.git/hooks/commit-msg')
}
}
Expand Down

0 comments on commit 400aa65

Please sign in to comment.