Skip to content
Snippets Groups Projects
Commit ae464c28 authored by Simon Spannagel's avatar Simon Spannagel
Browse files

Fix command in git hook

parent 7f3b22dd
No related branches found
No related tags found
No related merge requests found
......@@ -19,7 +19,7 @@ CLANG_FORMAT_VERSION=$(git cat-file blob master:"$VERSIONFILE" | grep -m 1 'CLAN
# set path to clang-format binary
for bin in "clang-format-$CLANG_FORMAT_VERSION" "clang-format";
do
CLANG_FORMAT=$(which "$bin" 2> /dev/null)
CLANG_FORMAT=$(command -v "$bin")
[ -n "$CLANG_FORMAT" ] && break
done
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment