From 17ce12576080ccc7ce7cfeaa7f99f277fd5db6b7 Mon Sep 17 00:00:00 2001 From: aboyko Date: Mon, 31 Jul 2023 20:11:18 -0400 Subject: [PATCH] [GHA-Build] Correct osx vs linux incompatibility --- .github/scripts/clear-s3-caches.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/scripts/clear-s3-caches.sh b/.github/scripts/clear-s3-caches.sh index 56d28289e..4879c445a 100755 --- a/.github/scripts/clear-s3-caches.sh +++ b/.github/scripts/clear-s3-caches.sh @@ -37,7 +37,7 @@ do json="${json}\"http://dist.springsource.com${path}\",${NL}\"https://dist.springsource.com${path}\",${NL}\"http://download.springsource.com${path}\",${NL}\"https://download.springsource.com${path}\",${NL}" fi if [[ "$counter" -eq "$FILES_BATCH" ]]; then - json="${json:0:-2}${NL}]}" + json="${json%,*}${NL}]}" echo $json curl -X DELETE "https://api.cloudflare.com/client/v4/zones/${CLOUDFLARE_ZONE_ID}/purge_cache" \ @@ -51,7 +51,7 @@ do fi done if ! [[ "$counter" -eq 0 ]]; then - json="${json:0:-2}${NL}]}" + json="${json%,*}${NL}]}" echo $json curl -X DELETE "https://api.cloudflare.com/client/v4/zones/${CLOUDFLARE_ZONE_ID}/purge_cache" \