Update check-health.ps1, list-news.ps1, and write-typewriter.ps1

This commit is contained in:
Markus Fleschutz
2022-10-17 09:49:23 +02:00
parent 59d1220f36
commit deec73527f
3 changed files with 5 additions and 4 deletions

View File

@ -19,11 +19,11 @@ param([string]$text = "`nHello World`n-----------`n* PowerShell is powerful - fu
try {
$Random = New-Object System.Random
$text -split '' | ForEach-Object {
Write-Host -noNewline $_
Start-Sleep -milliseconds $(1 + $Random.Next($speed))
}
Write-Host ""
exit 0 # success
} catch {
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"