mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-08-09 13:04:59 +02:00
Update check-health.ps1, list-news.ps1, and write-typewriter.ps1
This commit is contained in:
@ -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])"
|
||||
|
Reference in New Issue
Block a user