Browse Source

fix record update error for cloudxns (#167)

thanks.
Indust 9 years ago
parent
commit
4fa08fc78c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      dnsapi/dns_cx.sh

+ 1 - 1
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