From 52abf4ba84b5a41ac9903af0ba1087bf18be2187 Mon Sep 17 00:00:00 2001 From: robfram Date: Tue, 6 Mar 2018 19:53:37 +0100 Subject: [PATCH] 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 --- misc/hooks/pre-commit-clang-format | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc/hooks/pre-commit-clang-format b/misc/hooks/pre-commit-clang-format index 8ef4e27748e..016a43038bf 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: