toplenboren / simple-git-hooks

A simple git hooks manager for small projects
MIT License
1.32k stars 43 forks source link

Linux support regression: /usr/bin/env: ‘node\r’: No such file or directory #18

Closed ai closed 3 years ago

ai commented 3 years ago

npx simple-pre-commit now returns an error on Linux systems:

/usr/bin/env: ‘node\r’: No such file or directory

Seems like the script has Windows \r\n symbols. Maybe we need to change some git settings.

toplenboren commented 3 years ago

Gonna look into this issue, thanks!

toplenboren commented 3 years ago

Yep, the problem was with windows delimeters. Should be fixed by now, but I haven't been able to widely test it.

Gonna leave the issue open for now

toplenboren commented 3 years ago

Tested latest version on linux, it seems, like the bug was fixed