Skip to content

Commit

Permalink
fix for issue 4972; error can not get domain token entry
Browse files Browse the repository at this point in the history
  • Loading branch information
Hossy committed Jan 31, 2024
1 parent afacdfc commit 54c16a6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions acme.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4690,7 +4690,7 @@ $_authorizations_map"
_debug keyauthorization "$keyauthorization"
fi

entry="$(echo "$response" | _egrep_o '[^\{]*"type":"'$vtype'"[^\}]*')"
entry="$(echo "$response" | sed -n 's#"challenges":\[\([^]]*\)\]#\1#p' | sed 's#\(\}\),\({\)#\1\n\2#' | grep '"type":"'$vtype'"')"
_debug entry "$entry"

if [ -z "$keyauthorization" -a -z "$entry" ]; then
Expand Down Expand Up @@ -6251,7 +6251,7 @@ _deactivate() {
fi
_debug "Trigger validation."
vtype="$(_getIdType "$_d_domain")"
entry="$(echo "$response" | _egrep_o '[^\{]*"type":"'$vtype'"[^\}]*')"
entry="$(echo "$response" | sed -n 's#"challenges":\[\([^]]*\)\]#\1#p' | sed 's#\(\}\),\({\)#\1\n\2#' | grep '"type":"'$vtype'"')"
_debug entry "$entry"
if [ -z "$entry" ]; then
_err "Error, can not get domain token $d"
Expand Down

0 comments on commit 54c16a6

Please sign in to comment.