Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 10 additions & 5 deletions UnitySetup/UnitySetup.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ function Find-UnitySetupInstaller
else {
$knownBaseUrls = $knownBaseUrls | Sort-Object -Property @{ Expression={[math]::Abs(($_.CompareTo($linkComponents[0])))}; Ascending=$true}
}

$installerTemplates.Keys |
Where-Object { $Components -band $_ } |
ForEach-Object {
Expand All @@ -257,12 +257,17 @@ function Find-UnitySetupInstaller
}
}

if( $result ) {
$result
break
}
if( $result ) { break }
}

if( -not $result )
{
Write-Warning "Unable to find installer for the $_ component."
}
else { $result }

} | Sort-Object -Property ComponentType

}

<#
Expand Down