summaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authorrobfram <robfram@gmail.com>2018-03-06 19:53:37 +0100
committerrobfram <robfram@gmail.com>2018-03-06 19:53:37 +0100
commit52abf4ba84b5a41ac9903af0ba1087bf18be2187 (patch)
tree410da097765e2b9c2d618c85cd8d44f354d39816 /misc
parent4f1b87265e1e74b1fdd0aa0aa59a9daf03fd3f40 (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')
-rwxr-xr-xmisc/hooks/pre-commit-clang-format2
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: