diff --git a/Scripts/check-health.ps1 b/Scripts/check-health.ps1 index b06e282b..95938814 100755 --- a/Scripts/check-health.ps1 +++ b/Scripts/check-health.ps1 @@ -16,8 +16,8 @@ & "$PSScriptRoot/check-time-zone.ps1" & "$PSScriptRoot/check-cpu.ps1" & "$PSScriptRoot/check-ram.ps1" +& "$PSScriptRoot/check-smart-devices.ps1" & "$PSScriptRoot/check-swap-space.ps1" -& "$PSScriptRoot/check-smart-devices.ps1" & "$PSScriptRoot/check-drives.ps1" & "$PSScriptRoot/check-dns.ps1" & "$PSScriptRoot/check-ping.ps1" diff --git a/Scripts/list-news.ps1 b/Scripts/list-news.ps1 index 91c86f97..3bf5460c 100755 --- a/Scripts/list-news.ps1 +++ b/Scripts/list-news.ps1 @@ -21,12 +21,13 @@ try { [xml]$Content = (Invoke-WebRequest -URI $RSS_URL -useBasicParsing).Content [int]$Count = 1 foreach ($Item in $Content.rss.channel.item) { - "→ $($Item.title)" +# "→ $($Item.title)" + & "$PSScriptRoot/write-typewriter.ps1" "→ $($Item.title)" 30 # ms speed if ($Count++ -eq $MaxCount) { break } } $Source = $Content.rss.channel.title $Date = $Content.rss.channel.pubDate - " Source: $Source (as of $Date)" + " Updated: $Date by: $Source" exit 0 # success } catch { "⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])" diff --git a/Scripts/write-typewriter.ps1 b/Scripts/write-typewriter.ps1 index 0789fa37..9320b410 100755 --- a/Scripts/write-typewriter.ps1 +++ b/Scripts/write-typewriter.ps1 @@ -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])"