mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-08-13 22:38:46 +02:00
Improved check for $lastExitCode
This commit is contained in:
@ -12,7 +12,7 @@
|
||||
#>
|
||||
|
||||
TaskKill /im obs64.exe
|
||||
if ($lastExitCode -ne "0") {
|
||||
if ($lastExitCode -ne 0) {
|
||||
& "$PSScriptRoot/speak-english.ps1" "Sorry, OBS Studio isn't running"
|
||||
exit 1
|
||||
}
|
||||
|
Reference in New Issue
Block a user