mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-01-28 08:38:38 +01:00
Update tell-quote.ps1
This commit is contained in:
parent
f20248dc0a
commit
6b5e29d501
@ -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])"
|
||||
|
Loading…
Reference in New Issue
Block a user