fix(husky): use command -v to check tool existence without execution (#4839)

This commit is contained in:
andrewwallacespeckle
2025-05-28 17:15:13 +02:00
committed by GitHub
parent 11153701e4
commit c25c5d215c
+1 -1
View File
@@ -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