You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Use system-neutral /usr/bin/env bash instead of /bin/bash #87
instead of #!/usr/bin/env bash which would avoid the error error: cannot run .git/hooks/pre-commit: No such file or directory that users could get who does not have bash in /bin.
Has there been any discussion around this?
Reacted by Jason Papakostas, mw, Jannis Jorre and ItsDrike
I wanted to suggest the same - I am using NixOS and I do not have a /bin/bash at all. I would suggest to just us /bin/sh because that is the bare minimum which always has exist.
So, it seems that this has been fixed in the source code (that PR is now merged), but there wasn't a new release made in 8 years, so it's still not on NPM... Could a new release be made?
Activity
gilligan commentedon Dec 20, 2016
I wanted to suggest the same - I am using NixOS and I do not have a
/bin/bashat all. I would suggest to just us/bin/shbecause that is the bare minimum which always has exist.vith commentedon Jun 21, 2017
Same problem here on NixOS.
A PR to fix this has been opened at #105 by @tassmjau.
ItsDrike commentedon Sep 16, 2024
So, it seems that this has been fixed in the source code (that PR is now merged), but there wasn't a new release made in 8 years, so it's still not on NPM... Could a new release be made?