We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f9a98c2 commit b5e85bbCopy full SHA for b5e85bb
UnitySetup/UnitySetup.psm1
@@ -55,10 +55,10 @@ class UnitySetupInstance {
55
$modules = (Get-Content "$path\modules.json" -Raw) | ConvertFrom-Json
56
57
foreach ( $module in $modules ) {
58
- $module.DownloadUrl -match "(\d+)\.(\d+)\.(\d+)([fpb])(\d+)" | Out-Null
+ $match = $module.DownloadUrl -match "(\d+)\.(\d+)\.(\d+)([fpb])(\d+)" | Out-Null
59
60
- if ( $Matches -ne $null ) {
61
- $this.Version = [UnityVersion]$Matches[0]
+ if ( $null -ne $match ) {
+ $this.Version = [UnityVersion]$match
62
break
63
}
64
0 commit comments