diff --git a/automation/cloudflared-sync.sh b/automation/cloudflared-sync.sh index f47f0e9..8f3fa4a 100644 --- a/automation/cloudflared-sync.sh +++ b/automation/cloudflared-sync.sh @@ -51,7 +51,7 @@ TEMP_FILE=$(mktemp) cp "$ORIGINAL_FILE" "$TEMP_FILE" # Strip namespace key from existing values if present -yq eval '.cloudflare.ingress' "$TEMP_FILE" | yq -o=json | jq -c '.[]' > /tmp/existing.json +yq eval -o=json '.cloudflare.ingress' "$TEMP_FILE" > /tmp/existing.json yq eval '.ingress' "$GENERATED_FILE" | yq -o=json | jq -c '.[]' | while read -r new_entry; do hostname=$(echo "$new_entry" | jq -r '.hostname')