File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -665,10 +665,11 @@ function Request-UnitySetupInstaller {
665
665
}
666
666
}
667
667
668
+ # Showing progress of all file downloads
668
669
$totalDownloads = $global :downloadData.Count
670
+ do {
671
+ $installersDownloaded = 0
669
672
670
- # Showing progress of all file downloads
671
- while ($global :downloadData.Count -gt 0 ) {
672
673
$global :downloadData.Keys | ForEach-Object {
673
674
$installerFileName = $_
674
675
$data = $global :downloadData [$installerFileName ]
@@ -720,7 +721,7 @@ function Request-UnitySetupInstaller {
720
721
- PercentComplete $progress `
721
722
- Id $data.downloadIndex
722
723
}
723
- }
724
+ } while ( $installersDownloaded -lt $totalDownloads )
724
725
}
725
726
finally {
726
727
# If the script is stopped, e.g. Ctrl+C, we want to cancel any remaining downloads
You can’t perform that action at this time.
0 commit comments