]> git.proxmox.com Git - mirror_acme.sh.git/commitdiff
Fix typo candindates
authorLicaon_Kter <licaon-kter@users.noreply.github.com>
Tue, 7 Jul 2020 12:06:37 +0000 (12:06 +0000)
committerGitHub <noreply@github.com>
Tue, 7 Jul 2020 12:06:37 +0000 (12:06 +0000)
acme.sh

diff --git a/acme.sh b/acme.sh
index 28c39db4e902f46eaf4ca722a3e8c128ce9b0a6d..d9df3a6f9a1103e6f3d02db36a68ec38f76f6bd8 100755 (executable)
--- a/acme.sh
+++ b/acme.sh
@@ -4098,17 +4098,17 @@ $_authorizations_map"
 
       if [ "$ACME_VERSION" = "2" ]; then
         _idn_d="$(_idn "$d")"
-        _candindates="$(echo "$_authorizations_map" | grep -i "^$_idn_d,")"
-        _debug2 _candindates "$_candindates"
-        if [ "$(echo "$_candindates" | wc -l)" -gt 1 ]; then
-          for _can in $_candindates; do
+        _candidates="$(echo "$_authorizations_map" | grep -i "^$_idn_d,")"
+        _debug2 _candidates "$_candidates"
+        if [ "$(echo "$_candidates" | wc -l)" -gt 1 ]; then
+          for _can in $_candidates; do
             if _startswith "$(echo "$_can" | tr '.' '|')" "$(echo "$_idn_d" | tr '.' '|'),"; then
-              _candindates="$_can"
+              _candidates="$_can"
               break
             fi
           done
         fi
-        response="$(echo "$_candindates" | sed "s/$_idn_d,//")"
+        response="$(echo "$_candidates" | sed "s/$_idn_d,//")"
         _debug2 "response" "$response"
         if [ -z "$response" ]; then
           _err "get to authz error."