fix record update error for cloudxns

This commit is contained in:
Indust 2016-04-23 23:32:49 +08:00
parent e4739512e6
commit 5904acb20b

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