diff --git a/scripts/git-pre-commit-clangformat.sh b/scripts/git-pre-commit-clangformat.sh index 63fef98e..3e9d536a 100755 --- a/scripts/git-pre-commit-clangformat.sh +++ b/scripts/git-pre-commit-clangformat.sh @@ -76,7 +76,7 @@ else against=4b825dc642cb6eb9a060e54bf8d69288fbee4904 fi -CLANGFORMAT=$(command -v clang-format) +CLANGFORMAT=$(command -v clang-format || true) # make sure the executable are correctly set if [ -z "$CLANGFORMAT" ] ; then