mirror of
https://github.com/netchx/netch.git
synced 2026-03-14 17:43:18 +08:00
Update clean.ps1
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user