diff --git a/Tools/GacBuild.ps1 b/Tools/GacBuild.ps1 index 80d59605..6c0a3e9e 100644 --- a/Tools/GacBuild.ps1 +++ b/Tools/GacBuild.ps1 @@ -73,8 +73,8 @@ try { $FileName = (Resolve-Path -Path $FileName).Path if (-not (Test-Path -Path "$($FileName).log")) { Remove-Item -Path "$($FileName).log" -Recurse | Out-Null - New-Item -ItemType Directory "$($FileName).log" | Out-Null } + New-Item -ItemType Directory "$($FileName).log" | Out-Null EnumerateResourceFiles $FileName if (-not (Test-Path -Path "$($FileName).log\ResourceFiles.txt")) { diff --git a/Tools/GacClear.ps1 b/Tools/GacClear.ps1 index 217c0ad7..e6673ef5 100644 --- a/Tools/GacClear.ps1 +++ b/Tools/GacClear.ps1 @@ -20,10 +20,10 @@ try { throw "Input does not exist: $FileName" } $FileName = (Resolve-Path -Path $FileName).Path - if (Test-Path -Path "$($FileName).log") { + if (-not (Test-Path -Path "$($FileName).log")) { Remove-Item -Path "$($FileName).log" -Recurse | Out-Null - New-Item -ItemType Directory "$($FileName).log" | Out-Null } + New-Item -ItemType Directory "$($FileName).log" | Out-Null EnumerateResourceFiles $FileName if (-not (Test-Path -Path "$($FileName).log\ResourceFiles.txt")) {