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 baaed24 commit b7af1d8Copy full SHA for b7af1d8
templates/steps/ci.yml
@@ -21,15 +21,15 @@ steps:
21
If (!$setupInstance)
22
{
23
Write-Host "No Unity version specified and no Unity installation found - forcing to min supported version of 2018.3.10f1"
24
- $version = "2018.3.10f1";
+ $version = "2018.3.10f1"
25
}
26
Else
27
28
Write-Host "Using already installed Unity version '$($setupInstance.Version)'."
29
30
31
32
- If ($setupInstance.Version.ToString() -ne $version)
+ If (!$setupInstance -or $setupInstance.Version.ToString() -ne $version)
33
34
Write-Host "Installing Unity version '$version'."
35
Install-UnitySetupInstance -Installers (Find-UnitySetupInstaller -Version $version -Components "Windows")
0 commit comments