Skip to content

Commit 28beadf

Browse files
committed
Merges the latest from remote.
2 parents 95bbc2c + 3138d7f commit 28beadf

File tree

1 file changed

+9
-11
lines changed

1 file changed

+9
-11
lines changed

UnitySetup/UnitySetup.psm1

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -264,12 +264,10 @@ function Find-UnitySetupInstaller {
264264
$patchPage = "https://unity3d.com/unity/qa/patch-releases?version=$($Version.Major).$($Version.Minor)"
265265
$searchPages += $patchPage
266266

267-
$webResult = Invoke-WebRequest $patchPage -UseBasicParsing
268-
$searchPages += $webResult.Links | Where-Object {
269-
$_.href -match "\/unity\/qa\/patch-releases\?version=$($Version.Major)\.$($Version.Minor)&page=(\d+)" -and $Matches[1] -gt 1
270-
} | ForEach-Object {
271-
"https://unity3d.com/unity/qa/patch-releases?version=$($Version.Major).$($Version.Minor)&page=$($Matches[1])"
272-
}
267+
$webResult = Invoke-WebRequest $patchPage -UseBasicParsing
268+
$searchPages += $webResult.Links | Where-Object {
269+
$_.href -match "\/unity\/qa\/patch-releases\?version=$($Version.Major)\.$($Version.Minor)&page=(\d+)" -and $Matches[1] -gt 1
270+
} | ForEach-Object { "https://unity3d.com$($_.href)" }
273271
}
274272
}
275273

@@ -873,12 +871,12 @@ function Start-UnityEditor {
873871
) | ForEach-Object {
874872

875873
$alias = Get-Alias -Name $_.Name -ErrorAction 'SilentlyContinue'
876-
if( -not $alias ) {
877-
Write-Verbose "Creating new alias $($_.Name) for $($_.Value)"
878-
New-Alias @_
874+
if ( -not $alias ) {
875+
Write-Verbose "Creating new alias $($_.Name) for $($_.Value)"
876+
New-Alias @_
879877
}
880-
elseif( $alias.ModuleName -eq 'UnitySetup' ) {
881-
Write-Verbose "Setting alias $($_.Name) to $($_.Value)"
878+
elseif ( $alias.ModuleName -eq 'UnitySetup' ) {
879+
Write-Verbose "Setting alias $($_.Name) to $($_.Value)"
882880
Set-Alias @_
883881
}
884882
else {

0 commit comments

Comments
 (0)