Update write-quote.ps1

This commit is contained in:
Markus Fleschutz
2023-04-25 14:37:52 +02:00
parent bf81138941
commit d49ad5951b
2 changed files with 5 additions and 4 deletions

View File

@ -19,11 +19,11 @@ try {
$Quote = $Table[$Index].QUOTE
$Author = $Table[$Index].AUTHOR
""
Write-Host '“'$Quote' ”'
Write-Output ""
Write-Host '“'"$Quote"'„'
$Spaces = " "
$Spaces = $Spaces.Substring(0, $Quote.Length - $Author.Length)
"$Spaces $($Author.toUpper())"
Write-Output "$Spaces- $($Author.toUpper())"
exit 0 # success
} catch {
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"