Browse Source

chore: fix setup script (#7364)

dev
JK 7 years ago
committed by Evan You
parent
commit
400aa651ba
  1. 4
      scripts/setup.js

4
scripts/setup.js

@ -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')
}
}

Loading…
Cancel
Save