From c25c5d215cc951b880f48a08afcbb1a4ad6c94d0 Mon Sep 17 00:00:00 2001 From: andrewwallacespeckle <139135120+andrewwallacespeckle@users.noreply.github.com> Date: Wed, 28 May 2025 17:15:13 +0200 Subject: [PATCH] fix(husky): use command -v to check tool existence without execution (#4839) --- .husky/pre-commit | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.husky/pre-commit b/.husky/pre-commit index d7bbabf7b..d0e52bff5 100755 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -10,7 +10,7 @@ check_dependencies_available() { echo "🔍 looking for additional linter dependencies" for i in "${@}" do - if ! command "${i}"; then + if ! command -v "${i}"; then echo "No ${i} executable found skipping additional checks" >&2 exit 0 fi