[GHA-Build] integer comparisons with -eq
This commit is contained in:
4
.github/scripts/clear-s3-caches.sh
vendored
4
.github/scripts/clear-s3-caches.sh
vendored
@@ -20,7 +20,7 @@ counter=0
|
||||
json=""
|
||||
for file in $files
|
||||
do
|
||||
if [[ "$counter" eq 0 ]]; then
|
||||
if [[ "$counter" -eq 0 ]]; then
|
||||
json="\"{ \"files\": [\n"
|
||||
fi
|
||||
if [[ "$file" =~ ^"s3://dist.springsource.com" ]]; then
|
||||
@@ -28,7 +28,7 @@ do
|
||||
path=${file:26}
|
||||
json="${json}\"http://dist.springsource.com${path}\",\n\"http://dist.springsource.com${path}\",\n\"http://download.springsource.com${path}\",\n\"https://download.springsource.com${path}\",\n"
|
||||
fi
|
||||
if [[ "$counter" eq 10 ]]; then
|
||||
if [[ "$counter" -eq 10 ]]; then
|
||||
json="${json:-2}\n]}"
|
||||
echo $json
|
||||
json=""
|
||||
|
||||
Reference in New Issue
Block a user