mirror of
https://github.com/acmesh-official/acme.sh.git
synced 2025-05-09 09:12:44 +00:00
Update dns_hover.sh
This commit is contained in:
parent
621325dc83
commit
2b5dd5bf73
@ -114,7 +114,7 @@ dns_hover_rm() {
|
||||
fi
|
||||
|
||||
########### DELETE ###########
|
||||
count=$(printf "%s\n" "$response" | _egrep_o ",\"name\":\"$_sub_domain\",\"type\":\"TXT\",\"content\":\"$txtvalue\"" | cut -d : -f 2| wc -l )
|
||||
count=$(printf "%s\n" "$response" | _egrep_o ",\"name\":\"$_sub_domain\",\"type\":\"TXT\",\"content\":\"$txtvalue\"" | cut -d : -f 2 | wc -l)
|
||||
_debug count "$count"
|
||||
|
||||
if [ "$count" -eq "0" ]; then
|
||||
@ -132,12 +132,12 @@ dns_hover_rm() {
|
||||
_err "Delete record error in call."
|
||||
return 1
|
||||
fi
|
||||
|
||||
# verify response
|
||||
if ! _contains "$response" "\"succeeded\":true"; then
|
||||
_err "Delete record error in response."
|
||||
return 1
|
||||
fi
|
||||
|
||||
fi
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user