From b42e248709099a8abd7ba74845e3b8ba4686471d Mon Sep 17 00:00:00 2001 From: Netch Date: Tue, 20 Jul 2021 10:08:06 +0800 Subject: [PATCH] Update build.ps1 --- build.ps1 | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/build.ps1 b/build.ps1 index 3cff4cd7..3887212a 100644 --- a/build.ps1 +++ b/build.ps1 @@ -24,13 +24,10 @@ param ( Push-Location (Split-Path $MyInvocation.MyCommand.Path -Parent) -if (Test-Path -Path "$OutputPath") { +if ( Test-Path -Path "$OutputPath" ) { rm -Recurse -Force "$OutputPath" } - -if (Test-Path -Path "$OutputPath" -IsValid) { - New-Item -ItemType Directory -Name "$OutputPath" | Out-Null -} +New-Item -ItemType Directory -Name "$OutputPath" | Out-Null .\deps.ps1 "$OutputPath" if ( -Not $? ) { exit $lastExitCode }