Skip to content

Commit c6d5624

Browse files
committed
Check if folder exists
1 parent 9b290c5 commit c6d5624

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

build/Clean.ps1

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
$root_dir = Resolve-Path "$PSScriptRoot\..\"
22
Push-Location $root_dir
33

4-
Remove-Item $root_dir\artifacts -Force -Recurse
4+
If (Test-Path $root_dir\artifacts) {
5+
Remove-Item $root_dir\artifacts -Force -Recurse
6+
}
57

68
Get-ChildItem $root_dir\src -Include bin,obj -Recurse |
79
ForEach-Object ($_) {

0 commit comments

Comments
 (0)