File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -237,10 +237,8 @@ function Find-UnitySetupInstaller {
237
237
238
238
$webResult = Invoke-WebRequest $patchPage - UseBasicParsing
239
239
$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 ) " }
244
242
}
245
243
}
246
244
@@ -816,11 +814,11 @@ function Start-UnityEditor {
816
814
) | ForEach-Object {
817
815
818
816
$alias = Get-Alias - Name $_.Name - ErrorAction ' SilentlyContinue'
819
- if ( -not $alias ) {
817
+ if ( -not $alias ) {
820
818
Write-Verbose " Creating new alias $ ( $_.Name ) for $ ( $_.Value ) "
821
819
New-Alias @_
822
820
}
823
- elseif ( $alias.ModuleName -eq ' UnitySetup' ) {
821
+ elseif ( $alias.ModuleName -eq ' UnitySetup' ) {
824
822
Write-Verbose " Setting alias $ ( $_.Name ) to $ ( $_.Value ) "
825
823
Set-Alias @_
826
824
}
You can’t perform that action at this time.
0 commit comments