mirror of
https://github.com/plantroon/acme.sh.git
synced 2024-10-31 19:41:45 +00:00
move the error message
This commit is contained in:
parent
9541ea6a9f
commit
fc3a181779
2
acme.sh
2
acme.sh
@ -4121,7 +4121,6 @@ $_authorizations_map"
|
|||||||
_debug entry "$entry"
|
_debug entry "$entry"
|
||||||
keyauthorization=""
|
keyauthorization=""
|
||||||
if [ -z "$entry" ]; then
|
if [ -z "$entry" ]; then
|
||||||
_err "Error, can not get domain token entry $d for $vtype"
|
|
||||||
if ! _startswith "$d" '*.'; then
|
if ! _startswith "$d" '*.'; then
|
||||||
_debug "Not a wildcard domain, lets check whether the validation is already valid."
|
_debug "Not a wildcard domain, lets check whether the validation is already valid."
|
||||||
if echo "$response" | grep '"status":"valid"' >/dev/null 2>&1; then
|
if echo "$response" | grep '"status":"valid"' >/dev/null 2>&1; then
|
||||||
@ -4131,6 +4130,7 @@ $_authorizations_map"
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
if [ -z "$keyauthorization" ]; then
|
if [ -z "$keyauthorization" ]; then
|
||||||
|
_err "Error, can not get domain token entry $d for $vtype"
|
||||||
_supported_vtypes="$(echo "$response" | _egrep_o "\"challenges\":\[[^]]*]" | tr '{' "\n" | grep type | cut -d '"' -f 4 | tr "\n" ' ')"
|
_supported_vtypes="$(echo "$response" | _egrep_o "\"challenges\":\[[^]]*]" | tr '{' "\n" | grep type | cut -d '"' -f 4 | tr "\n" ' ')"
|
||||||
if [ "$_supported_vtypes" ]; then
|
if [ "$_supported_vtypes" ]; then
|
||||||
_err "The supported validation types are: $_supported_vtypes, but you specified: $vtype"
|
_err "The supported validation types are: $_supported_vtypes, but you specified: $vtype"
|
||||||
|
Loading…
Reference in New Issue
Block a user