mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-02-22 20:51:17 +01:00
Improve write-quote.ps1
This commit is contained in:
parent
9b9f69c98f
commit
2918d30249
@ -21,10 +21,11 @@ try {
|
||||
$Quote = $Table[$Index].Quote
|
||||
$Author = $Table[$Index].Author
|
||||
|
||||
""
|
||||
write-host '“'$Quote' ”'
|
||||
$Spaces = " "
|
||||
$Spaces = $Spaces.Substring(0, $Quote.Length - $Author.Length)
|
||||
write-host "$Spaces $($Author.toUpper())"
|
||||
"$Spaces $($Author.toUpper())"
|
||||
|
||||
exit 0
|
||||
} catch {
|
||||
|
Loading…
Reference in New Issue
Block a user