diff options
author | robfram <robfram@gmail.com> | 2018-03-06 19:53:37 +0100 |
---|---|---|
committer | robfram <robfram@gmail.com> | 2018-03-06 19:53:37 +0100 |
commit | 52abf4ba84b5a41ac9903af0ba1087bf18be2187 (patch) | |
tree | 410da097765e2b9c2d618c85cd8d44f354d39816 /misc/hooks/pre-commit-clang-format | |
parent | 4f1b87265e1e74b1fdd0aa0aa59a9daf03fd3f40 (diff) |
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
Diffstat (limited to 'misc/hooks/pre-commit-clang-format')
-rwxr-xr-x | misc/hooks/pre-commit-clang-format | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/misc/hooks/pre-commit-clang-format b/misc/hooks/pre-commit-clang-format index 8ef4e27748..016a43038b 100755 --- a/misc/hooks/pre-commit-clang-format +++ b/misc/hooks/pre-commit-clang-format @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # git pre-commit hook that runs a clang-format stylecheck. # Features: |