From 5904acb20ba877fc5a459fbe233463f92d2e042a Mon Sep 17 00:00:00 2001 From: Indust <603170673m@gmail.com> Date: Sat, 23 Apr 2016 23:32:49 +0800 Subject: [PATCH] fix record update error for cloudxns --- dnsapi/dns_cx.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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