Skip to content

Commit ff4adaa

Browse files
author
amazingandyyy
committed
update
1 parent 35b983d commit ff4adaa

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

install.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ function isCI (env) {
1515

1616
function installHook (hook) {
1717
const source = path.join(__dirname, 'hook')
18-
18+
1919
// in the postinstall stage
2020
// process.cwd() === __dirname
2121
// so we need to jump up three level here
22-
const root = path.join(__dirname, '../../..');
22+
const root = path.join(__dirname, '../../..')
2323
const target = path.join(root, '.git', 'hooks', hook)
2424

2525
if (fs.existsSync(source) && fs.existsSync(path.join(root, '.git'))) {

uninstall.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const HOOKS = require('./hooks')
66
// in the preuninstall stage
77
// process.cwd() === __dirname
88
// so we need to jump up three level here
9-
const root = path.join(__dirname, '../../..');
9+
const root = path.join(__dirname, '../../..')
1010
const hookPathList = HOOKS.map(hook => path.join(root, '.git', 'hooks', hook))
1111

1212
const generatedByGitHooks = '# git-hooks'

0 commit comments

Comments
 (0)