mirror of
https://github.com/hanzoai/husky.git
synced 2026-09-24 16:59:45 +00:00
Merge branch 'ccerrillo-fix-windows-path'
This commit is contained in:
@@ -28,6 +28,6 @@ export default (d = '.husky') => {
|
||||
f.mkdirSync(_(), { recursive: true })
|
||||
w(_('.gitignore'), '*')
|
||||
f.copyFileSync(new URL('husky', import.meta.url), _('h'))
|
||||
l.forEach(h => w(_(h), `#!/usr/bin/env sh\n. "\${0%/*}/h"`, { mode: 0o755 }))
|
||||
l.forEach(h => w(_(h), `#!/usr/bin/env sh\n. "\$(dirname "\$0")/h"`, { mode: 0o755 }))
|
||||
return ''
|
||||
}
|
||||
Reference in New Issue
Block a user