diff --git a/dnsapi/dns_cx.sh b/dnsapi/dns_cx.sh index 070a2ad6..dc9c532b 100644 --- a/dnsapi/dns_cx.sh +++ b/dnsapi/dns_cx.sh @@ -69,7 +69,7 @@ existing_records() { return 1 fi count=0 - seg=$(printf "$response" | grep -o "{[^{]*host\":\"$_sub_domain[^}]*}") + seg=$(printf "$response" | grep -o "{[^{]*host\":\"$_sub_domain\"[^}]*}") _debug seg "$seg" if [ -z "$seg" ] ; then return 0