Fix typo in killprocesses.ps1

Fixes variable reference typo.
This commit is contained in:
Javier Calvarro Nelson 2019-03-16 19:15:47 +01:00 committed by GitHub
parent 2eb0692434
commit 3189146b4e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -15,9 +15,9 @@ function _killJavaInstances() {
Where-Object { $_.Path -like "$env:JAVA_HOME*" };
foreach($_javaProcess in $_javaProcesses) {
try {
Stop-Process $proc
Stop-Process $_javaProcess
} catch {
Write-Host "Failed to kill java process: $proc"
Write-Host "Failed to kill java process: $_javaProcess"
}
}
}