mirror of
https://github.com/OpenVPN/openvpn3.git
synced 2024-09-19 19:52:15 +02:00
Fix fail silently bug in pre-commit hook
Without the change and in the absence of a clang-format command in the user's PATH, the script will fail in line 79 of the hook due to set -e. It will fail to produce the error message starting at line 83. The change allows the error message to print. Signed-off-by: Mark Deric <jmark@openvpn.net>
This commit is contained in:
parent
3936778c38
commit
318d83ae43
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user