Skip to content

Commit bbfe8e3

Browse files
committed
Merge branch 'ccerrillo-fix-windows-path'
2 parents b9f5889 + eb54845 commit bbfe8e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,6 @@ export default (d = '.husky') => {
2828
f.mkdirSync(_(), { recursive: true })
2929
w(_('.gitignore'), '*')
3030
f.copyFileSync(new URL('husky', import.meta.url), _('h'))
31-
l.forEach(h => w(_(h), `#!/usr/bin/env sh\n. "\${0%/*}/h"`, { mode: 0o755 }))
31+
l.forEach(h => w(_(h), `#!/usr/bin/env sh\n. "\$(dirname "\$0")/h"`, { mode: 0o755 }))
3232
return ''
3333
}

0 commit comments

Comments
 (0)