Fix directory creation problems

This commit is contained in:
Steve Streeting 2021-05-14 16:06:26 +01:00
parent dfa371bbb3
commit 36c0b3d2f1

View File

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