From 0bfee38ecb1b81e94683e77cb4f11522f1d234b0 Mon Sep 17 00:00:00 2001 From: Zihan Chen Date: Wed, 4 Jul 2018 02:13:28 -0700 Subject: [PATCH] ... --- Tools/GacBuild.ps1 | 2 +- Tools/GacClear.ps1 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Tools/GacBuild.ps1 b/Tools/GacBuild.ps1 index 6c0a3e9e..e218c881 100644 --- a/Tools/GacBuild.ps1 +++ b/Tools/GacBuild.ps1 @@ -71,7 +71,7 @@ try { throw "Input does not exist: $FileName" } $FileName = (Resolve-Path -Path $FileName).Path - if (-not (Test-Path -Path "$($FileName).log")) { + if (Test-Path -Path "$($FileName).log") { Remove-Item -Path "$($FileName).log" -Recurse | Out-Null } New-Item -ItemType Directory "$($FileName).log" | Out-Null diff --git a/Tools/GacClear.ps1 b/Tools/GacClear.ps1 index e6673ef5..f44f4555 100644 --- a/Tools/GacClear.ps1 +++ b/Tools/GacClear.ps1 @@ -20,7 +20,7 @@ try { throw "Input does not exist: $FileName" } $FileName = (Resolve-Path -Path $FileName).Path - if (-not (Test-Path -Path "$($FileName).log")) { + if (Test-Path -Path "$($FileName).log") { Remove-Item -Path "$($FileName).log" -Recurse | Out-Null } New-Item -ItemType Directory "$($FileName).log" | Out-Null