Open charud opened 7 years ago
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.
Same problem here on NixOS.
A PR to fix this has been opened at #105 by @tassmjau.
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?
Is there a reason that
#!/bin/bash
is used here https://github.com/observing/pre-commit/blob/7154dee93f2c38ef46f807f21cc9ce73848d7396/hook#L1 instead of#!/usr/bin/env bash
which would avoid the errorerror: 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?