From 4fa08fc78c29013eeb3abf396290ca4ff6db9618 Mon Sep 17 00:00:00 2001 From: Indust <603170673m@gmail.com> Date: Sun, 24 Apr 2016 22:54:40 +0800 Subject: [PATCH] fix record update error for cloudxns (#167) thanks. --- 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