From f46255a53aef65b27b3a96c49e012fa012121ba3 Mon Sep 17 00:00:00 2001 From: Zihan Chen Date: Tue, 3 Jul 2018 22:09:01 -0700 Subject: [PATCH] ... --- Tools/GacBuild.ps1 | 2 +- Tools/GacClear.ps1 | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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")) {