From 4cdba7ca432abcfac0219e0db5da9f9323d024ce Mon Sep 17 00:00:00 2001 From: aboyko Date: Mon, 31 Jul 2023 17:45:02 -0400 Subject: [PATCH] [GHA-Build] Debug cloudflare cache flush script --- .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 5a204c706..22c39bf93 100755 --- a/.github/scripts/clear-s3-caches.sh +++ b/.github/scripts/clear-s3-caches.sh @@ -31,7 +31,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 10 ]]; then - json="${json:-2}${NL}]}" + json="${json::-2}${NL}]}" echo $json json="" counter=0 @@ -39,7 +39,7 @@ do fi done if ! [[ "$counter" -eq 0 ]]; then - json="${json:-2}${NL}]}" + json="${json::-2}${NL}]}" echo $json # flush with request fi