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 869b396 commit 48e4aabCopy full SHA for 48e4aab
UnitySetup/UnitySetup.psm1
@@ -57,7 +57,7 @@ class UnitySetupInstance {
57
58
if ( Test-Path $ivy.FullName ) {
59
[xml]$xmlDoc = Get-Content $ivy.FullName
60
- $version = $xmlDoc.'ivy-module'.info.unityVersion
+ $version = [UnityVersion]$xmlDoc.'ivy-module'.info.unityVersion
61
}
62
else {
63
# No ivy files found, so search the new modules.json for the version
@@ -66,8 +66,8 @@ class UnitySetupInstance {
66
foreach ( $module in $modules ) {
67
$module.DownloadUrl -match "(\d+)\.(\d+)\.(\d+)([fpb])(\d+)" | Out-Null
68
69
- if ( $Matches[0] -ne $null ) {
70
- $version = $Matches[0]
+ if ( $Matches -ne $null ) {
+ $version = [UnityVersion]$Matches[0]
71
break
72
73
0 commit comments