mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 08:14:42 +04:00
silence the output of command -v
This commit is contained in:
parent
9b18686168
commit
0b87867729
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue