13 lines
399 B
PowerShell
13 lines
399 B
PowerShell
task Clean {
|
|
if (Test-Path $Output)
|
|
{
|
|
"Cleaning Output files in [$Output]..."
|
|
$null = Get-ChildItem -Path $Output -File -Recurse |
|
|
Remove-Item -Force -ErrorAction 'Ignore'
|
|
|
|
"Cleaning Output directories in [$Output]..."
|
|
$null = Get-ChildItem -Path $Output -Directory -Recurse |
|
|
Remove-Item -Recurse -Force -ErrorAction 'Ignore'
|
|
}
|
|
}
|