From ce4be4e91eb5e2d34b4a3363fb2514e0088ae5ed Mon Sep 17 00:00:00 2001 From: neil Date: Thu, 17 Nov 2016 13:20:20 +0800 Subject: [PATCH] fix _exists --- acme.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/acme.sh b/acme.sh index a4a08392..1397f870 100755 --- a/acme.sh +++ b/acme.sh @@ -252,7 +252,7 @@ _exists() { eval type "$cmd" >/dev/null 2>&1 elif command >/dev/null 2>&1; then command -v "$cmd" >/dev/null 2>&1 - elif which which >/dev/null 2>&1; then + else which "$cmd" >/dev/null 2>&1 fi ret="$?"