islandsurvivalcraft/test-server/end-debug-server-process.ps1

9 lines
199 B
PowerShell
Raw Normal View History

if (Test-Path ./pid.temp) {
$sID = Get-Item -Path ./pid.temp | Get-Content -Tail 1
if (Get-Process -Id $sID -ErrorAction SilentlyContinue) {
Stop-Process -Id $sID
}
Remove-Item "./pid.temp"
}