fixing output clean and making build init vars verbose output
This commit is contained in:
@@ -1,9 +1,12 @@
|
||||
task Clean {
|
||||
'Cleaning Output files...'
|
||||
$null = Get-ChildItem -Path $Output -File -Recurse |
|
||||
Remove-Item -Force -ErrorAction 'Ignore'
|
||||
if (Test-Path $Output)
|
||||
{
|
||||
"Cleaning Output files in [$Output]..."
|
||||
$null = Get-ChildItem -Path $Output -File -Recurse |
|
||||
Remove-Item -Force -ErrorAction 'Ignore'
|
||||
|
||||
'Cleaning Output directories...'
|
||||
$null = Get-ChildItem -Path $Output -Directory -Recurse |
|
||||
Remove-Item -Recurse -Force -ErrorAction 'Ignore'
|
||||
"Cleaning Output directories in [$Output]..."
|
||||
$null = Get-ChildItem -Path $Output -Directory -Recurse |
|
||||
Remove-Item -Recurse -Force -ErrorAction 'Ignore'
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user