Skip to content

Commit d300bcf

Browse files
authored
Merge pull request pre-commit#2111 from pre-commit/silence
silence the output of `command -v`
2 parents 9b18686 + 0b87867 commit d300bcf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎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)