fix(husky): use command -v to check tool existence without execution (#4839)
This commit is contained in:
committed by
GitHub
parent
11153701e4
commit
c25c5d215c
+1
-1
@@ -10,7 +10,7 @@ check_dependencies_available() {
|
|||||||
echo "🔍 looking for additional linter dependencies"
|
echo "🔍 looking for additional linter dependencies"
|
||||||
for i in "${@}"
|
for i in "${@}"
|
||||||
do
|
do
|
||||||
if ! command "${i}"; then
|
if ! command -v "${i}"; then
|
||||||
echo "No ${i} executable found skipping additional checks" >&2
|
echo "No ${i} executable found skipping additional checks" >&2
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user