mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-08-09 13:04:59 +02:00
Improve write-quote.ps1
This commit is contained in:
@ -21,7 +21,11 @@ try {
|
||||
$Quote = $Table[$Index].Quote
|
||||
$Author = $Table[$Index].Author
|
||||
|
||||
"📣 $Quote <$Author>"
|
||||
write-host '“'$Quote' ”'
|
||||
$Spaces = " "
|
||||
$Spaces = $Spaces.Substring(0, $Quote.Length - $Author.Length)
|
||||
write-host "$Spaces $($Author.toUpper())"
|
||||
|
||||
exit 0
|
||||
} catch {
|
||||
write-error "⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||
|
Reference in New Issue
Block a user