From 74811f7fe679e0855bdd2f8a965917ed510f4017 Mon Sep 17 00:00:00 2001 From: Markus Fleschutz Date: Thu, 10 Aug 2023 11:35:46 +0200 Subject: [PATCH] Update tell-quote.ps1 --- Scripts/tell-quote.ps1 | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Scripts/tell-quote.ps1 b/Scripts/tell-quote.ps1 index 877be7ed..2215312f 100755 --- a/Scripts/tell-quote.ps1 +++ b/Scripts/tell-quote.ps1 @@ -17,10 +17,8 @@ try { $randomNumberGenerator = New-Object System.Random $row = [int]$randomNumberGenerator.next(0, $table.Count - 1) - $quote = $table[$row].QUOTE - $author = $table[$row].AUTHOR - & "$PSScriptRoot/speak-english.ps1" "$quote (by $author)" + & "$PSScriptRoot/speak-english.ps1" "$($table[$row].QUOTE). By $($table[$row].AUTHOR)." exit 0 # success } catch { "⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"