fix record update error for cloudxns (#167)

thanks.
This commit is contained in:
Indust 2016-04-24 22:54:40 +08:00 committed by neil
parent 5c5705789e
commit 4fa08fc78c

View 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