File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -49,11 +49,11 @@ class UnitySetupInstance {
49
49
[string ]$Path
50
50
51
51
UnitySetupInstance([string ]$path ) {
52
+ $version = $null
52
53
$currentOS = Get-OperatingSystem
53
54
54
55
# First we'll attempt to search for the version using the ivy.xml definitions for legacy editor compatibility.
55
56
$ivy = Get-ChildItem - Path $path - Filter ivy.xml - Recurse - ErrorAction SilentlyContinue - Force | Select-Object - First 1
56
- $version = $null
57
57
58
58
if ( Test-Path $ivy.FullName ){
59
59
[xml ]$xmlDoc = Get-Content $ivy.FullName
@@ -65,7 +65,8 @@ class UnitySetupInstance {
65
65
66
66
foreach ( $module in $modules ) {
67
67
$module.DownloadUrl -match " (\d+)\.(\d+)\.(\d+)([fpb])(\d+)" | Out-Null
68
- if ( $Matches [0 ] -ne $null ){
68
+
69
+ if ( $Matches [0 ] -ne $null ) {
69
70
$version = $Matches [0 ]
70
71
break
71
72
}
You can’t perform that action at this time.
0 commit comments