From b7fb931c4c4548ad40dc47341b5465b0ab8e962c Mon Sep 17 00:00:00 2001 From: Dominik Wild Date: Wed, 8 Nov 2017 10:50:09 +0100 Subject: [PATCH] fixed sed parameters --- dnsapi/dns_dynu.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }