Skip to content

Commit 3138d7f

Browse files
authored
Merge pull request #93 from jwittner/fix/missingPatchVersions
HotFix - Develop - Updated regex for back catalog versions
2 parents 43386b8 + c71192c commit 3138d7f

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

UnitySetup/UnitySetup.psm1

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -237,10 +237,8 @@ function Find-UnitySetupInstaller {
237237

238238
$webResult = Invoke-WebRequest $patchPage -UseBasicParsing
239239
$searchPages += $webResult.Links | Where-Object {
240-
$_.href -match "\/unity\/qa\/patch-releases\?version=$($Version.Major)\.$($Version.Minor)&page=(\d+)" -and $Matches[1] -gt 1
241-
} | ForEach-Object {
242-
"https://unity3d.com/unity/qa/patch-releases?version=$($Version.Major).$($Version.Minor)&page=$($Matches[1])"
243-
}
240+
$_.href -match "\/unity\/qa\/patch-releases\?version=$($Version.Major)\.$($Version.Minor)&page=(\d+)" -and $Matches[1] -gt 1
241+
} | ForEach-Object { "https://unity3d.com$($_.href)" }
244242
}
245243
}
246244

@@ -816,11 +814,11 @@ function Start-UnityEditor {
816814
) | ForEach-Object {
817815

818816
$alias = Get-Alias -Name $_.Name -ErrorAction 'SilentlyContinue'
819-
if( -not $alias ) {
817+
if ( -not $alias ) {
820818
Write-Verbose "Creating new alias $($_.Name) for $($_.Value)"
821819
New-Alias @_
822820
}
823-
elseif( $alias.ModuleName -eq 'UnitySetup' ) {
821+
elseif ( $alias.ModuleName -eq 'UnitySetup' ) {
824822
Write-Verbose "Setting alias $($_.Name) to $($_.Value)"
825823
Set-Alias @_
826824
}

0 commit comments

Comments
 (0)