Browse Source

fix for solaris

pull/566/head
neilpang 8 years ago
parent
commit
646c0bfcb9
  1. 2
      dnsapi/dns_cx.sh

2
dnsapi/dns_cx.sh

@ -82,7 +82,7 @@ existing_records() {
return 1 return 1
fi 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" _debug seg "$seg"
if [ -z "$seg" ]; then if [ -z "$seg" ]; then
return 0 return 0

Loading…
Cancel
Save