mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
Improve Start-PSBuild -Clean
Always do the clean in the root folder
This commit is contained in:
+9
-1
@@ -89,7 +89,15 @@ function Start-PSBuild {
|
||||
if ($Clean)
|
||||
{
|
||||
log "Cleaning your working directory. You can also do it with 'git clean -fdX'"
|
||||
git clean -fdX
|
||||
Push-Location $PSScriptRoot
|
||||
try
|
||||
{
|
||||
git clean -fdX
|
||||
}
|
||||
finally
|
||||
{
|
||||
Pop-Location
|
||||
}
|
||||
}
|
||||
|
||||
# save Git description to file for PowerShell to include in PSVersionTable
|
||||
|
||||
Reference in New Issue
Block a user