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