We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3b3e7f1 commit b4465edCopy full SHA for b4465ed
bin.js
@@ -15,12 +15,12 @@ if (a == 'init') {
15
w(n, JSON.stringify(o, 0, /\t/.test(s) ? '\t' : 2) + '\n')
16
p.stdout.write(i())
17
try { f.mkdirSync('.husky') } catch {}
18
- w('.husky/pre-commit', p.env.npm_config_user_agent?.split('/')[0] ?? 'npm' + ' test\n')
+ w('.husky/pre-commit', (p.env.npm_config_user_agent?.split('/')[0] ?? 'npm') + ' test\n')
19
p.exit()
20
}
21
22
d = c => console.error(`${c} command is DEPRECATED`)
23
if (['add', 'set', 'uninstall'].includes(a)) { d(a); p.exit(1) }
24
if (a == 'install') d(a)
25
26
-p.stdout.write(i(a == 'install' ? undefined : a))
+p.stdout.write(i(a == 'install' ? undefined : a))
0 commit comments