From ba92ca1f70244884ec4d3a60511a783fb060e9c5 Mon Sep 17 00:00:00 2001 From: Gui <12204241+guirava@users.noreply.github.com> Date: Sat, 12 Oct 2024 19:50:18 -0700 Subject: [PATCH] util script update --- Utils/Clean-RscSdk.ps1 | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Utils/Clean-RscSdk.ps1 b/Utils/Clean-RscSdk.ps1 index a89b29994..f4d138f39 100644 --- a/Utils/Clean-RscSdk.ps1 +++ b/Utils/Clean-RscSdk.ps1 @@ -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