mirror of
https://github.com/timsutton/brigadier.git
synced 2025-05-31 07:18:27 -04:00
Always clean up working directory
This commit is contained in:
parent
5d0b7dff4e
commit
3b240d6fab
1 changed files with 3 additions and 1 deletions
|
@ -106,4 +106,6 @@ if ($Install) {
|
|||
do { Write-Output "Sleeping 20 seconds"; Start-Sleep -Seconds 20 } while (Get-Process -Name "msiexec" -ErrorAction SilentlyContinue)
|
||||
if (-not $KeepFiles) { Remove-Item -Path "$landingDir" -Recurse -Force -ErrorAction SilentlyContinue }
|
||||
}
|
||||
else { exit }
|
||||
|
||||
Write-Host "Cleaning up working directory..."
|
||||
Remove-Item -Path $workingDir -Recurse
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue