From 8e34bf17fc41d0b79599562f4c3594faa721fa9e Mon Sep 17 00:00:00 2001 From: pat-s Date: Tue, 1 Sep 2026 22:47:28 +0000 Subject: [PATCH] style(scripts): indent the purge zone jq filter by a multiple of two The continuation lines of the zone-lookup filter sat at nine spaces, which fails editorconfig-checker and blocks `prek run -a` for everyone. jq ignores the leading whitespace, so the filter is unchanged: it still resolves the zone id from both the object and the bare array response shape. --- scripts/purge_cdn_zone.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/purge_cdn_zone.sh b/scripts/purge_cdn_zone.sh index 6c07eef..8e85cb6 100755 --- a/scripts/purge_cdn_zone.sh +++ b/scripts/purge_cdn_zone.sh @@ -70,8 +70,8 @@ resolve_zone_id() { zone_id=$( jq -r --arg hostname "${zone}" \ '(if type == "object" then (.Items // []) else . end)[] - | select(any(.Hostnames[]?; .Value == $hostname)) - | .Id' \ + | select(any(.Hostnames[]?; .Value == $hostname)) + | .Id' \ "${response_file}" ) rm -f "${response_file}"