Skip to content

Commit

Permalink
check if temp dir exists
Browse files Browse the repository at this point in the history
  • Loading branch information
tahina-pro committed Dec 12, 2023
1 parent 2ee2612 commit d0e4a26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/package/windows/build-everparse.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ if ($Release) {
# Choose a temporary directory name for Cygwin
$tmpRoot = "C:\"
[string] $tmpBaseName = "everparse-cygwin64.tmp"
if ($WithClean) {
if ($WithClean && Test-Path ($tmpRoot + $tmpBaseName)) {
Remove-Item -Path ($tmpRoot + $tmpBaseName) -Recurse -Force
}
New-Item -Path $tmpRoot -Name $tmpBaseName -ItemType directory
Expand Down

0 comments on commit d0e4a26

Please sign in to comment.