Skip to content

Commit

Permalink
util script update
Browse files Browse the repository at this point in the history
  • Loading branch information
guirava committed Oct 13, 2024
1 parent c5d60ac commit ba92ca1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Utils/Clean-RscSdk.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,18 @@ Set-Location $PSScriptRoot\..

if (-Not $KeepOutputDir) {
if (Test-Path -Path .\Output) {
Remove-Item -Recurse -Force .\Output
Remove-Item -Recurse -Force .\Output -ErrorAction Stop
}
if (Test-Path -Path .\Output.Release) {
Remove-Item -Recurse -Force .\Output.Release
Remove-Item -Recurse -Force .\Output.Release -ErrorAction Stop
}
if (Test-Path -Path .\Output.Publish) {
Remove-Item -Recurse -Force .\Output.Publish
Remove-Item -Recurse -Force .\Output.Publish -ErrorAction Stop
}
}
Get-ChildItem -Path . -Recurse -Directory | Where-Object {
$_.Name -ieq "obj" -or $_.Name -ieq "bin"
} | Remove-Item -Force -Recurse
} | Remove-Item -Force -Recurse -ErrorAction Stop
Get-ChildItem -Path . -Recurse | Where-Object {
$_.Name -ieq "testResults.xml" -or $_.Name -ieq "tmp_help"
} | Remove-Item -Force -Recurse
} | Remove-Item -Force -Recurse -ErrorAction Stop

0 comments on commit ba92ca1

Please sign in to comment.