File tree Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -190,10 +190,15 @@ function Find-UnitySetupInstaller
190
190
' f' { $searchPages += " https://unity3d.com/get-unity/download/archive" }
191
191
' b' { $searchPages += " https://unity3d.com/unity/beta/unity$Version " }
192
192
' p' {
193
- $webResult = Invoke-WebRequest " https://unity3d.com/unity/qa/patch-releases?version=$ ( $Version.Major ) .$ ( $Version.Minor ) "
194
- $searchPages += $webResult.Links | Where-Object { $_.href -match " \/unity\/qa\/patch-releases\?version=$ ( $Version.Major ) \.$ ( $Version.Minor ) &page=(\d+)" } | ForEach-Object {
195
- " https://unity3d.com/unity/qa/patch-releases?version=$ ( $Version.Major ) .$ ( $Version.Minor ) &page=$ ( $Matches [1 ]) "
196
- }
193
+ $patchPage = " https://unity3d.com/unity/qa/patch-releases?version=$ ( $Version.Major ) .$ ( $Version.Minor ) "
194
+ $searchPages += $patchPage
195
+
196
+ $webResult = Invoke-WebRequest $patchPage
197
+ $searchPages += $webResult.Links | Where-Object {
198
+ $_.href -match " \/unity\/qa\/patch-releases\?version=$ ( $Version.Major ) \.$ ( $Version.Minor ) &page=(\d+)" -and $Matches [1 ] -gt 1
199
+ } | ForEach-Object {
200
+ " https://unity3d.com/unity/qa/patch-releases?version=$ ( $Version.Major ) .$ ( $Version.Minor ) &page=$ ( $Matches [1 ]) "
201
+ }
197
202
}
198
203
}
199
204
@@ -204,7 +209,7 @@ function Find-UnitySetupInstaller
204
209
$_ -match " $ ( $installerTemplates [[UnitySetupComponentType ]::Setup ]) $"
205
210
}
206
211
207
- if ($null -eq $prototypeLink ) { break }
212
+ if ($null -ne $prototypeLink ) { break }
208
213
}
209
214
210
215
if ($null -eq $prototypeLink )
You can’t perform that action at this time.
0 commit comments