Fix creating local dirs on pull

This commit is contained in:
Steve Streeting 2021-05-14 16:23:45 +01:00
parent 82c489e6d3
commit 03479c2e2f

View File

@ -279,7 +279,8 @@ try {
Write-Output "Would have pulled: $filename ($oid)" Write-Output "Would have pulled: $filename ($oid)"
} else { } else {
Write-Output "Pull: $filename ($oid)" Write-Output "Pull: $filename ($oid)"
New-Item -ItemType Directory $subdir -Force > $null $subdir = [System.IO.Path]::GetDirectoryName($localbuiltdata)
New-Item -ItemType Directory -Path $subdir -Force > $null
Copy-Item $remotebuiltdata $localbuiltdata Copy-Item $remotebuiltdata $localbuiltdata
} }
} }