fixed dns_zoneee GET TXT records parsing
This commit is contained in:
parent
c63828c565
commit
3bdc22b70f
@ -36,8 +36,8 @@ dns_zoneee_add() {
|
||||
_debug "Getting txt records"
|
||||
_zoneee_rest GET "$_domain/txt"
|
||||
|
||||
if printf "%s" "$response" | grep \"result\":error >/dev/null; then
|
||||
_err "Error"
|
||||
if echo "$response" | grep \"result\":\"error\" >/dev/null; then
|
||||
_err "Error Getting TXT records"
|
||||
return 1
|
||||
fi
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user