Improve write-quote.ps1

This commit is contained in:
Markus Fleschutz 2021-08-16 16:55:24 +02:00
parent 9b9f69c98f
commit 2918d30249

View File

@ -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 {