summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Hausmann <simon.hausmann@qt.io>2019-10-10 10:41:10 +0200
committerFrederik Gladhorn <frederik.gladhorn@qt.io>2019-10-10 14:52:48 +0000
commit85926c9d512e5d5d33a2cadfac1a834515399546 (patch)
tree1d75e37d58f5cc4b30a3f79c0838c54107cd14a6
parenta51db43b580f774c64275cd3e1e0c707de2a04a4 (diff)
Prospective shell syntax fix for clang-pre-commit hook
Change-Id: I231d81b599b2e8b0da135a53061ddb8173236c4b Reviewed-by: Leander Beernaert <leander.beernaert@qt.io> Reviewed-by: Frederik Gladhorn <frederik.gladhorn@qt.io>
-rwxr-xr-xgit-hooks/clang-format-pre-commit2
1 files changed, 1 insertions, 1 deletions
diff --git a/git-hooks/clang-format-pre-commit b/git-hooks/clang-format-pre-commit
index 051c6dd..25d87ec 100755
--- a/git-hooks/clang-format-pre-commit
+++ b/git-hooks/clang-format-pre-commit
@@ -12,7 +12,7 @@
#
CLANG_FORMAT=`which git-clang-format`
-if test -n "$CLANG_FORMAT"
+if test -n "$CLANG_FORMAT"; then
echo "Please install clang-format and make sure git-clang-format is in the path."
exit 0
fi