Create directories only when they don't exist

This commit is contained in:
Sebastiaan Janssen
2017-09-09 16:48:13 +02:00
parent 001e15f83c
commit 3f55abaf59

View File

@@ -232,12 +232,19 @@ function Prepare-Tests
# data
Write-Host "Copy data files"
mkdir "$tmp\tests\Packaging" > $null
if( -Not (Test-Path -Path "$tmp\tests\Packaging" ) )
{
Write-Host "Create packaging directory"
New-Item -ItemType directory -Path "$tmp\tests\Packaging"
}
Copy-Files "$src\Umbraco.Tests\Packaging\Packages" "*" "$tmp\tests\Packaging\Packages"
# required for package install tests
Write-Host "Create bin directory"
mkdir "$tmp\tests\bin" > $null
if( -Not (Test-Path -Path "$tmp\tests\bin" ) )
{
Write-Host "Create bin directory"
New-Item -ItemType directory -Path "$tmp\tests\bin"
}
}
#