Update close-microsoft-edge.ps1

This commit is contained in:
Markus Fleschutz 2021-11-15 14:08:58 +01:00
parent 3978a8d1a6
commit 23d02c432e

View File

@ -11,8 +11,8 @@
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
#> #>
$result = TaskKill /im msedge.exe TaskKill /im msedge.exe /f /t
if ($result -ne 0) { if ($lastExitCode -ne "0") {
& "$PSScriptRoot/speak-english.ps1" "Sorry, can't close Microsoft Edge" & "$PSScriptRoot/speak-english.ps1" "Sorry, can't close Microsoft Edge"
exit 1 exit 1
} }