Merge branch 'ccerrillo-fix-windows-path'

This commit is contained in:
typicode
2024-07-18 14:35:56 +02:00
+1 -1
View File
@@ -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 ''
}