From a21d3cdfdc6b672610e4b9d9a44fb7f60511c981 Mon Sep 17 00:00:00 2001 From: Markus Fleschutz Date: Tue, 23 Jun 2020 17:02:00 +0000 Subject: [PATCH] Replaced curl by Invoke-WebRequest --- Scripts/moon.ps1 | 2 +- Scripts/weather.ps1 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Scripts/moon.ps1 b/Scripts/moon.ps1 index 4bd59bab..194a2054 100755 --- a/Scripts/moon.ps1 +++ b/Scripts/moon.ps1 @@ -6,5 +6,5 @@ # Source: github.com/fleschutz/PowerShell # License: CC0 # -(curl wttr.in/Moon -UserAgent "curl" ).Content +(Invoke-WebRequest http://wttr.in/Moon -UserAgent "curl" ).Content exit 0 diff --git a/Scripts/weather.ps1 b/Scripts/weather.ps1 index 555a82ad..c77bc269 100755 --- a/Scripts/weather.ps1 +++ b/Scripts/weather.ps1 @@ -6,5 +6,5 @@ # Source: github.com/fleschutz/PowerShell # License: CC0 # -(curl de.wttr.in/Berlin -UserAgent "curl" ).Content +(Invoke-WebRequest http://wttr.in/Berlin -UserAgent "curl" ).Content exit 0