Update clean.ps1

This commit is contained in:
Netch
2021-09-12 23:38:21 +08:00
parent eb9f894020
commit 6a94dc625b

View File

@@ -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