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