fix for solaris

This commit is contained in:
neilpang 2017-01-31 12:51:59 +08:00
parent bcf96608d1
commit 646c0bfcb9
1 changed files with 1 additions and 1 deletions

View File

@ -82,7 +82,7 @@ existing_records() {
return 1
fi
seg=$(printf "%s\n" "$response" | _egrep_o '[^{]*host":"'"$_sub_domain"'"[^}]*\}')
seg=$(printf "%s\n" "$response" | _egrep_o '"record_id":[^{]*host":"'"$_sub_domain"'"[^}]*\}')
_debug seg "$seg"
if [ -z "$seg" ]; then
return 0