Merge pull request #2111 from pre-commit/silence

silence the output of `command -v`
This commit is contained in:
Anthony Sottile
2021-10-29 11:14:51 -04:00
committed by GitHub

View File

@@ -12,7 +12,7 @@ ARGS+=(--hook-dir "$HERE" -- "$@")
if [ -x "$INSTALL_PYTHON" ]; then
exec "$INSTALL_PYTHON" -mpre_commit "${ARGS[@]}"
elif command -v pre-commit; then
elif command -v pre-commit > /dev/null; then
exec pre-commit "${ARGS[@]}"
else
echo '`pre-commit` not found. Did you forget to activate your virtualenv?' 1>&2