From c361acb66ed6d227afc9a29fe5bfce9dc7a44b6a Mon Sep 17 00:00:00 2001 From: Markus Fleschutz Date: Wed, 14 Dec 2022 08:49:05 +0100 Subject: [PATCH] Update close-calculator.ps1 --- Scripts/close-calculator.ps1 | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/Scripts/close-calculator.ps1 b/Scripts/close-calculator.ps1 index 36dd8ed5..67445f55 100755 --- a/Scripts/close-calculator.ps1 +++ b/Scripts/close-calculator.ps1 @@ -11,9 +11,5 @@ Author: Markus Fleschutz | License: CC0 #> -TaskKill /im Calculator.exe /f /t -if ($lastExitCode -ne "0") { - & "$PSScriptRoot/speak-english.ps1" "Sorry, calculator isn't running." - exit 1 -} +Stop-Process -name "CalculatorApp" exit 0 # success