From 6a94dc625bc4daebb7ed84ce4547a54637fc523f Mon Sep 17 00:00:00 2001 From: Netch Date: Sun, 12 Sep 2021 23:38:21 +0800 Subject: [PATCH] Update clean.ps1 --- Other/clean.ps1 | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Other/clean.ps1 b/Other/clean.ps1 index d201fbb2..aa8707ed 100644 --- a/Other/clean.ps1 +++ b/Other/clean.ps1 @@ -1,8 +1,16 @@ Push-Location (Split-Path $MyInvocation.MyCommand.Path -Parent) -if (Test-Path 'release') { +if ( Test-Path 'release' ) { rm -Recurse -Force 'release' } +Get-ChildItem -Path '.' -Directory | ForEach-Object { + $name=$_.Name + + if ( Test-Path "$name\src" ) { + rm -Recurse -Force "$name\src" + } +} + Pop-Location exit 0