File tree Expand file tree Collapse file tree 1 file changed +9
-11
lines changed Expand file tree Collapse file tree 1 file changed +9
-11
lines changed Original file line number Diff line number Diff line change @@ -264,12 +264,10 @@ function Find-UnitySetupInstaller {
264
264
$patchPage = " https://unity3d.com/unity/qa/patch-releases?version=$ ( $Version.Major ) .$ ( $Version.Minor ) "
265
265
$searchPages += $patchPage
266
266
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 ) " }
273
271
}
274
272
}
275
273
@@ -873,12 +871,12 @@ function Start-UnityEditor {
873
871
) | ForEach-Object {
874
872
875
873
$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 @_
879
877
}
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 ) "
882
880
Set-Alias @_
883
881
}
884
882
else {
You can’t perform that action at this time.
0 commit comments