From 51a6e60f86a6d7a3b4600f73e10988bb3ab72ce7 Mon Sep 17 00:00:00 2001 From: Dmitry Nefedov Date: Wed, 25 Aug 2021 00:08:44 +0300 Subject: [PATCH] Update Sophia.psm1 --- Sophia/PowerShell 7/Module/Sophia.psm1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sophia/PowerShell 7/Module/Sophia.psm1 b/Sophia/PowerShell 7/Module/Sophia.psm1 index c98eb6ae..42720ef6 100644 --- a/Sophia/PowerShell 7/Module/Sophia.psm1 +++ b/Sophia/PowerShell 7/Module/Sophia.psm1 @@ -152,7 +152,7 @@ function Checkings [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 # https://github.com/farag2/Sophia-Script-for-Windows/blob/master/sophia_script_versions.json - $LatestRelease = (Invoke-WebRequest -Uri "https://raw.githubusercontent.com/farag2/Sophia-Script-for-Windows/master/sophia_script_versions.json" -UseBasicParsing | ConvertFrom-Json).Sophia_Script_Windows_10_PowerShell_7 + $LatestRelease = (Invoke-RestMethod -Uri "https://raw.githubusercontent.com/farag2/Sophia-Script-for-Windows/master/sophia_script_versions.json" -UseBasicParsing).Sophia_Script_Windows_10_PowerShell_7 $CurrentRelease = (Get-Module -Name Sophia).Version.ToString() switch ([System.Version]$LatestRelease -gt [System.Version]$CurrentRelease) {