Skip to content

Commit

Permalink
Merge branch 'ccerrillo-fix-windows-path'
Browse files Browse the repository at this point in the history
  • Loading branch information
typicode committed Jul 18, 2024
2 parents b9f5889 + eb54845 commit bbfe8e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 ''
}

0 comments on commit bbfe8e3

Please sign in to comment.