Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions UnitySetup/UnitySetup.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -1005,6 +1005,12 @@ function Install-UnitySetupInstance {
if (-not $installPath.EndsWith([io.path]::DirectorySeparatorChar)) {
$installPath += [io.path]::DirectorySeparatorChar
}

# Make sure the folder .unitysetup exist before create sparsebundle
if (-not (Test-Path $Cache -PathType Container)) {
Write-Verbose "Creating directory $Cache."
New-Item $Cache -ItemType Directory -ErrorAction Stop | Out-Null
}

# Creating sparse bundle to host installing Unity in other locations
$unitySetupBundlePath = [io.path]::Combine($Cache, "UnitySetup.sparsebundle")
Expand Down