Skip to content

Commit 400aa65

Browse files
jkzingyyx990803
authored andcommitted
chore: fix setup script (#7364)
1 parent 6be9fdb commit 400aa65

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: scripts/setup.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ const { test, ln, chmod } = require('shelljs')
22

33
function installHooks () {
44
if (test('-e', '.git/hooks')) {
5-
ln('-sf', '../../build/git-hooks/pre-commit', '.git/hooks/pre-commit')
5+
ln('-sf', '../../scripts/git-hooks/pre-commit', '.git/hooks/pre-commit')
66
chmod('+x', '.git/hooks/pre-commit')
7-
ln('-sf', '../../build/git-hooks/commit-msg', '.git/hooks/commit-msg')
7+
ln('-sf', '../../scripts/git-hooks/commit-msg', '.git/hooks/commit-msg')
88
chmod('+x', '.git/hooks/commit-msg')
99
}
1010
}

0 commit comments

Comments
 (0)