Browse Source

Updated dns_dynu.sh sed usage to be FreeBSD compatible

pull/3335/head
braytoni 5 years ago
parent
commit
cf31eabdc3
  1. 3
      dnsapi/dns_dynu.sh

3
dnsapi/dns_dynu.sh

@ -162,7 +162,8 @@ _get_recordid() {
return 0
fi
_dns_record_id=$(printf "%s" "$response" | sed -e 's/[^{]*\({[^}]*}\)[^{]*/\1\n/g' | grep "\"textData\":\"$txtvalue\"" | sed -e 's/.*"id":\([^,]*\).*/\1/')
_dns_record_id=$(printf "%s" "$response" | sed -e 's/[^{]*\({[^}]*}\)[^{]*/\1\
/g' | grep "\"textData\":\"$txtvalue\"" | sed -e 's/.*"id":\([^,]*\).*/\1/')
return 0
}

Loading…
Cancel
Save