Reference bash explicitly in shebang lines

On Solaris, where /bin/sh is actually sh, not bash, some expressions
like $() are not supported.  Git's own scripts on this machine are
configured to use "#!/bin/bash".  Change our shebang line to

  #!/usr/bin/env bash

which should work almost everywhere.
This commit is contained in:
Gaëtan Lehmann 2010-08-03 11:00:14 -04:00 committed by Brad King
parent 6c7e3f42ba
commit 8653d28606
2 changed files with 2 additions and 2 deletions

@ -1,4 +1,4 @@
#!/bin/sh
#!/usr/bin/env bash
#
# Copy or link this file as ".git/hooks/pre-commit".

@ -1,4 +1,4 @@
#!/bin/sh
#!/usr/bin/env bash
#
# Copy or link this file as ".git/hooks/pre-commit".