diff --git a/dnsapi/dns_dynu.sh b/dnsapi/dns_dynu.sh index 81cb4d77..e53b0e05 100644 --- a/dnsapi/dns_dynu.sh +++ b/dnsapi/dns_dynu.sh @@ -169,7 +169,7 @@ _get_recordid() { return 0 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 }