.git-pre-commit: quit gracefully if clang-format is not found instead of erroring

parent 6b63331c
...@@ -46,6 +46,6 @@ elif [ ! -z "$(find /usr/bin/ /usr/local/bin/ /opt/bin/ -name 'clang-format-diff ...@@ -46,6 +46,6 @@ elif [ ! -z "$(find /usr/bin/ /usr/local/bin/ /opt/bin/ -name 'clang-format-diff
# Warning! We need at least version 1.6... # Warning! We need at least version 1.6...
clang-format-diff-diffing $@ clang-format-diff-diffing $@
else else
echo "$0: Please install clang-format (coding style checker) - could not find git-clang-format nor clang-format-diff in PATH." echo "$0: Please install clang-format (coding style checker) - could not find git-clang-format nor clang-format-diff in PATH. Skipping code verification..."
exit 1 exit 0
fi fi
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment