Fix KillProcess()
This commit is contained in:
parent
033a4fa843
commit
cab76871f2
2 changed files with 2 additions and 3 deletions
|
@ -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 {
|
||||
|
|
Reference in a new issue