From 9008248af533292f9d2a43eb34cd75746b1b22ff Mon Sep 17 00:00:00 2001 From: Ecky-Ecky-Pikang-Zoom-Boing-Gumzowehzeh <104073287+Ecky-Ecky-Pikang-Zoom-Boing-Gumzowehzeh@users.noreply.github.com> Date: Sat, 15 Oct 2022 07:58:51 +0200 Subject: [PATCH] Update dns_njalla.sh the ID was not getting extracted from the record data. The " character was missing. --- dnsapi/dns_njalla.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dnsapi/dns_njalla.sh b/dnsapi/dns_njalla.sh index e9243288..b20ca778 100644 --- a/dnsapi/dns_njalla.sh +++ b/dnsapi/dns_njalla.sh @@ -93,7 +93,7 @@ dns_njalla_rm() { echo "$records" | while read -r record; do record_name=$(echo "$record" | _egrep_o "\"name\":\s?\"[^\"]*\"" | cut -d : -f 2 | tr -d " " | tr -d \") record_content=$(echo "$record" | _egrep_o "\"content\":\s?\"[^\"]*\"" | cut -d : -f 2 | tr -d " " | tr -d \") - record_id=$(echo "$record" | _egrep_o "\"id\":\s?[0-9]+" | cut -d : -f 2 | tr -d " " | tr -d \") + record_id=$(echo "$record" | _egrep_o "\"id\":\s?\"[0-9]+" | cut -d : -f 2 | tr -d " " | tr -d \") if [ "$_sub_domain" = "$record_name" ]; then if [ "$txtvalue" = "$record_content" ]; then _debug "record_id" "$record_id"