瀏覽代碼

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
robfram 7 年之前
父節點
當前提交
52abf4ba84
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      misc/hooks/pre-commit-clang-format

+ 1 - 1
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.
 # git pre-commit hook that runs a clang-format stylecheck.
 # Features:
 # Features: