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
1 changed files with 1 additions and 1 deletions

View File

@ -69,7 +69,7 @@ existing_records() {
return 1 return 1
fi fi
count=0 count=0
seg=$(printf "$response" | grep -o "{[^{]*host\":\"$_sub_domain[^}]*}") seg=$(printf "$response" | grep -o "{[^{]*host\":\"$_sub_domain\"[^}]*}")
_debug seg "$seg" _debug seg "$seg"
if [ -z "$seg" ] ; then if [ -z "$seg" ] ; then
return 0 return 0