diff --git a/bin.js b/bin.js index 40d28590c..73ee3eda0 100755 --- a/bin.js +++ b/bin.js @@ -15,7 +15,7 @@ if (a == 'init') { w(n, JSON.stringify(o, 0, /\t/.test(s) ? '\t' : 2) + '\n') p.stdout.write(i()) try { f.mkdirSync('.husky') } catch {} - 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') p.exit() } @@ -23,4 +23,4 @@ d = c => console.error(`${c} command is DEPRECATED`) if (['add', 'set', 'uninstall'].includes(a)) { d(a); p.exit(1) } if (a == 'install') d(a) -p.stdout.write(i(a == 'install' ? undefined : a)) \ No newline at end of file +p.stdout.write(i(a == 'install' ? undefined : a))