mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-08-16 15:41:52 +02:00
Update list-crypto-rates.ps1 and list-news.ps1
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Lists the news
|
||||
List news
|
||||
.DESCRIPTION
|
||||
This PowerShell script lists the latest news by using RSS (Really Simple Syndication) feeds.
|
||||
.PARAMETER RSS_URL
|
||||
@ -36,7 +36,7 @@ try {
|
||||
$Date = $Date -Replace "Sat, ",""
|
||||
$Date = $Date -Replace "Sun, ",""
|
||||
$Copyright = $Content.rss.channel.copyright
|
||||
"<$Source|$Date|$Copyright>"
|
||||
"($Source|$Date|$Copyright)"
|
||||
exit 0 # success
|
||||
} catch {
|
||||
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||
|
Reference in New Issue
Block a user