Improve Start-PSBuild -Clean
Always do the clean in the root folder
This commit is contained in:
parent
3fd885ef2d
commit
bcac0ece62
10
build.psm1
10
build.psm1
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue