diff --git a/build/dockerfiles/import-vsix.sh b/build/dockerfiles/import-vsix.sh index 5e1839d3c7..e435d41fff 100755 --- a/build/dockerfiles/import-vsix.sh +++ b/build/dockerfiles/import-vsix.sh @@ -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