diff --git a/acme.sh b/acme.sh index ba4688cf..280cb415 100755 --- a/acme.sh +++ b/acme.sh @@ -249,7 +249,7 @@ _exists() { fi if command >/dev/null 2>&1; then command -v "$cmd" >/dev/null 2>&1 - elif which >/dev/null 2>&1; then + elif which ls >/dev/null 2>&1; then which "$cmd" >/dev/null 2>&1 fi ret="$?"