We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
command -v
1 parent 9b18686 commit 0b87867Copy full SHA for 0b87867
pre_commit/resources/hook-tmpl
@@ -12,7 +12,7 @@ ARGS+=(--hook-dir "$HERE" -- "$@")
12
13
if [ -x "$INSTALL_PYTHON" ]; then
14
exec "$INSTALL_PYTHON" -mpre_commit "${ARGS[@]}"
15
-elif command -v pre-commit; then
+elif command -v pre-commit > /dev/null; then
16
exec pre-commit "${ARGS[@]}"
17
else
18
echo '`pre-commit` not found. Did you forget to activate your virtualenv?' 1>&2
0 commit comments