mirror of
https://github.com/aphrody-labs/PowerShell.git
synced 2026-10-17 04:36:39 +00:00
Improve Start-PSBuild -Clean
Always do the clean in the root folder
This commit is contained in:
1 parent
3fd885ef2d
commit
bcac0ece62
1 file changed
+9
-1
+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