]> git.proxmox.com Git - mirror_acme.sh.git/commitdiff
fix record update error for cloudxns (#167)
authorIndust <603170673m@gmail.com>
Sun, 24 Apr 2016 14:54:40 +0000 (22:54 +0800)
committerneil <github@byneil.com>
Sun, 24 Apr 2016 14:54:40 +0000 (22:54 +0800)
thanks.

dnsapi/dns_cx.sh

index 070a2ad63e16be32ef877d64ad307456cecb8587..dc9c532b9f8419577b514d7525034966e195ab80 100644 (file)
@@ -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