From 49055bc014b1c4426e7b64e25f87b5418e3636a1 Mon Sep 17 00:00:00 2001 From: aboyko Date: Mon, 31 Jul 2023 20:07:01 -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 d1844e0b7..56d28289e 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::-2}${NL}]}" + json="${json:0:-2}${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::-2}${NL}]}" + json="${json:0:-2}${NL}]}" echo $json curl -X DELETE "https://api.cloudflare.com/client/v4/zones/${CLOUDFLARE_ZONE_ID}/purge_cache" \