Skip to content

Commit 0b87867

Browse files
committed
silence the output of command -v
1 parent 9b18686 commit 0b87867

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pre_commit/resources/hook-tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ ARGS+=(--hook-dir "$HERE" -- "$@")
1212

1313
if [ -x "$INSTALL_PYTHON" ]; then
1414
exec "$INSTALL_PYTHON" -mpre_commit "${ARGS[@]}"
15-
elif command -v pre-commit; then
15+
elif command -v pre-commit > /dev/null; then
1616
exec pre-commit "${ARGS[@]}"
1717
else
1818
echo '`pre-commit` not found. Did you forget to activate your virtualenv?' 1>&2

0 commit comments

Comments
 (0)