Skip to content

Commit 13235ec

Browse files
committed
Moving download into for loop for multiple installers
1 parent 3e2fbd3 commit 13235ec

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

UnitySetup/UnitySetup.psm1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -465,9 +465,9 @@ function Install-UnitySetupInstance {
465465
if (!(Test-Path $destDirectory -PathType Container)) {
466466
New-Item "$destDirectory" -ItemType Directory | Out-Null
467467
}
468-
}
469468

470-
(New-Object System.Net.WebClient).DownloadFile($downloadSource, $downloadDest)
469+
(New-Object System.Net.WebClient).DownloadFile($downloadSource, $downloadDest)
470+
}
471471
}
472472

473473
for ($i = 0; $i -lt $localInstallers.Length; $i++) {

0 commit comments

Comments
 (0)