Skip to content

Commit

Permalink
Fix typo candindates
Browse files Browse the repository at this point in the history
  • Loading branch information
licaon-kter authored and honzahommer committed Jul 10, 2020
1 parent cd4bc7e commit df282b5
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions acme.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4122,17 +4122,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."
Expand Down

0 comments on commit df282b5

Please sign in to comment.