Update tell-quote.ps1

This commit is contained in:
Markus Fleschutz 2022-12-02 09:16:16 +01:00 committed by GitHub
parent f20248dc0a
commit 6b5e29d501
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -18,9 +18,8 @@ try {
$Index = [int]$Generator.next(0, $Table.Count - 1)
$Quote = $Table[$Index].Quote
$Author = $Table[$Index].Author
$Reply = "$Quote (by $Author)"
& "$PSScriptRoot/speak-english.ps1" "$Reply"
& "$PSScriptRoot/speak-english.ps1" "$Quote (by $Author)"
exit 0 # success
} catch {
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"