Change shebang of pre-commit-clang-format hook to make it portable

The default one is "#!/bin/bash", but BSD systems doesn't have bash
in that path. For portability reasons, it should be changed to
"#!/usr/bin/env bash".

More info: https://en.wikipedia.org/wiki/Shebang_%28Unix%29#Portability

(cherry picked from commit 52abf4ba84)
This commit is contained in:
robfram 2018-03-06 19:53:37 +01:00 committed by Hein-Pieter van Braam
parent ce1b62a01f
commit 4fc6256010

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# git pre-commit hook that runs a clang-format stylecheck.
# Features: