From 4730d84c84f9173b98ffaeb65bdbc6a51487c5b8 Mon Sep 17 00:00:00 2001 From: Markus Fleschutz Date: Tue, 18 Oct 2022 13:20:19 +0200 Subject: [PATCH] Update list-news.ps1 --- Scripts/list-news.ps1 | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Scripts/list-news.ps1 b/Scripts/list-news.ps1 index 3bf5460c..21b6055c 100755 --- a/Scripts/list-news.ps1 +++ b/Scripts/list-news.ps1 @@ -21,13 +21,12 @@ try { [xml]$Content = (Invoke-WebRequest -URI $RSS_URL -useBasicParsing).Content [int]$Count = 1 foreach ($Item in $Content.rss.channel.item) { -# "→ $($Item.title)" - & "$PSScriptRoot/write-typewriter.ps1" "→ $($Item.title)" 30 # ms speed + & "$PSScriptRoot/write-typewriter.ps1" "→ $($Item.title)" 20 # ms speed if ($Count++ -eq $MaxCount) { break } } $Source = $Content.rss.channel.title $Date = $Content.rss.channel.pubDate - " Updated: $Date by: $Source" + " By *$($Source)* as of $Date" exit 0 # success } catch { "⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"