You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
8 lines
306 B
8 lines
306 B
const { test, ln, chmod } = require('shelljs')
|
|
|
|
if (test('-e', '.git/hooks')) {
|
|
ln('-sf', '../../build/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')
|
|
chmod('+x', '.git/hooks/commit-msg')
|
|
}
|
|
|