fixed dns_zoneee GET TXT records parsing

This commit is contained in:
Siim Talvik 2018-10-17 18:36:55 +03:00
parent c63828c565
commit 3bdc22b70f

View File

@ -36,8 +36,8 @@ dns_zoneee_add() {
_debug "Getting txt records" _debug "Getting txt records"
_zoneee_rest GET "$_domain/txt" _zoneee_rest GET "$_domain/txt"
if printf "%s" "$response" | grep \"result\":error >/dev/null; then if echo "$response" | grep \"result\":\"error\" >/dev/null; then
_err "Error" _err "Error Getting TXT records"
return 1 return 1
fi fi