Browse Source

fixed sed parameters

pull/1103/head
Dominik Wild 7 years ago
parent
commit
b7fb931c4c
  1. 2
      dnsapi/dns_dynu.sh

2
dnsapi/dns_dynu.sh

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

Loading…
Cancel
Save