From 05f041127d3811fe44403d72784ac7553f6681c3 Mon Sep 17 00:00:00 2001 From: bruvzg <7645683+bruvzg@users.noreply.github.com> Date: Fri, 24 Apr 2020 20:11:53 +0300 Subject: Git Hooks: Suppress "which" error messages. --- misc/hooks/pre-commit-clang-format | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'misc/hooks/pre-commit-clang-format') diff --git a/misc/hooks/pre-commit-clang-format b/misc/hooks/pre-commit-clang-format index 5a48aa1bfa..4e1fbdeb20 100755 --- a/misc/hooks/pre-commit-clang-format +++ b/misc/hooks/pre-commit-clang-format @@ -16,7 +16,7 @@ ################################################################## # SETTINGS # Set path to clang-format binary. -CLANG_FORMAT=`which clang-format` +CLANG_FORMAT=`which clang-format 2>/dev/null` # Remove any older patches from previous commits. Set to true or false. DELETE_OLD_PATCHES=false @@ -31,7 +31,7 @@ FILE_EXTS=".c .h .cpp .hpp .cc .hh .cxx .m .mm .inc .java .glsl" # Use pygmentize instead of cat to parse diff with highlighting. # Install it with `pip install pygments` (Linux) or `easy_install Pygments` (Mac) -PYGMENTIZE=`which pygmentize` +PYGMENTIZE=`which pygmentize 2>/dev/null` if [ ! -z "$PYGMENTIZE" ]; then READER="pygmentize -l diff" else @@ -39,13 +39,13 @@ else fi # Path to zenity -ZENITY=`which zenity` +ZENITY=`which zenity 2>/dev/null` # Path to xmessage -XMSG=`which xmessage` +XMSG=`which xmessage 2>/dev/null` # Path to powershell (Windows only) -PWSH=`which powershell` +PWSH=`which powershell 2>/dev/null` ################################################################## # There should be no need to change anything below this line. -- cgit v1.2.3