Fix KillProcess()

This commit is contained in:
Yorick Barbanneau 2018-03-23 12:15:32 +01:00
parent 033a4fa843
commit cab76871f2
2 changed files with 2 additions and 3 deletions

View file

@ -378,8 +378,7 @@ function KillProcess {
)
Write-Host -NoNewLine "`tKilling $($params.name) : "
try {
$p = Get-Process $process
Stop-Process $p | Out-Null
Stop-Process $(Get-Process $params.name)
Write-Host -ForegroundColor Green "Done"
}
catch {