Skip to content

Commit

Permalink
was already used so switch to j
Browse files Browse the repository at this point in the history
  • Loading branch information
SDawley committed Jul 18, 2023
1 parent 703f5cc commit f3a829d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build/dockerfiles/import-vsix.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@ getMetadata(){
key=$2

# check there is no error field in the metadata and retry if there is
for i in 1 2 3 4 5
for j in 1 2 3 4 5
do
vsixMetadata=$(curl -sLS "https://open-vsx.org/api/${vsixName}/${key}")
if [[ $(echo "${vsixMetadata}" | jq -r ".error") != null ]]; then
echo "Attempt $i/5: Error while getting metadata for ${vsixFullName} version ${key}"
echo "Attempt $j/5: Error while getting metadata for ${vsixName} version ${key}"
continue
else
break
Expand Down

0 comments on commit f3a829d

Please sign in to comment.