We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b9f5889 + eb54845 commit bbfe8e3Copy full SHA for bbfe8e3
index.js
@@ -28,6 +28,6 @@ export default (d = '.husky') => {
28
f.mkdirSync(_(), { recursive: true })
29
w(_('.gitignore'), '*')
30
f.copyFileSync(new URL('husky', import.meta.url), _('h'))
31
- 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 }))
32
return ''
33
}
0 commit comments