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.
2 parents db97eb2 + 9c3e47d commit 75fc290Copy full SHA for 75fc290
UnitySetup/UnitySetup.psm1
@@ -1005,6 +1005,12 @@ function Install-UnitySetupInstance {
1005
if (-not $installPath.EndsWith([io.path]::DirectorySeparatorChar)) {
1006
$installPath += [io.path]::DirectorySeparatorChar
1007
}
1008
+
1009
+ # Make sure the folder .unitysetup exist before create sparsebundle
1010
+ if (-not (Test-Path $Cache -PathType Container)) {
1011
+ Write-Verbose "Creating directory $Cache."
1012
+ New-Item $Cache -ItemType Directory -ErrorAction Stop | Out-Null
1013
+ }
1014
1015
# Creating sparse bundle to host installing Unity in other locations
1016
$unitySetupBundlePath = [io.path]::Combine($Cache, "UnitySetup.sparsebundle")
0 commit comments