From 37a2c76077ba3605626859005de5c3a3ffcd8fc9 Mon Sep 17 00:00:00 2001 From: Tine Date: Mon, 6 Jan 2025 19:00:27 +0100 Subject: [PATCH] fix(ingress.tjo.cloud/dyndns): jq --- ingress.tjo.cloud/root/usr/local/bin/dyndns | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ingress.tjo.cloud/root/usr/local/bin/dyndns b/ingress.tjo.cloud/root/usr/local/bin/dyndns index 6395faf..8f65543 100755 --- a/ingress.tjo.cloud/root/usr/local/bin/dyndns +++ b/ingress.tjo.cloud/root/usr/local/bin/dyndns @@ -198,7 +198,7 @@ while (true); do fi log::info "type=A Checking for stale records..." - for domain in $(echo "$domain_records" | jq -r ".data[] | select(.type == "A" and .name != "$CLOUD_REGION") | .name"); do + for domain in $(echo "$domain_records" | jq -r ".data[] | select(.type == \"A\" and .name != \"$CLOUD_REGION\") | .name"); do log::info "type=A domain=$domain Checking..." record_id=$(echo "$domain_records" | jq -r ".data[] | select(.name == \"$domain\") | .id") record_ip=$(echo "$domain_records" | jq -r ".data[] | select(.name == \"$domain\") | .content") @@ -211,7 +211,7 @@ while (true); do done log::info "type=AAAA Checking for stale records..." - for domain in $(echo "$domain_records" | jq -r ".data[] | select(.type == "AAAA" and .name != "$CLOUD_REGION") | .name"); do + for domain in $(echo "$domain_records" | jq -r ".data[] | select(.type == \"AAAA\" and .name != \"$CLOUD_REGION\") | .name"); do log::info "type=AAAA domain=$domain Checking..." record_id=$(echo "$domain_records" | jq -r ".data[] | select(.name == \"$domain\") | .id") record_ip=$(echo "$domain_records" | jq -r ".data[] | select(.name == \"$domain\") | .content")