Browse Source

Update Sophia.psm1

pull/240/head
Dmitry Nefedov 3 years ago
committed by GitHub
parent
commit
e976faf1d7
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      Sophia/LTSC/Module/Sophia.psm1

2
Sophia/LTSC/Module/Sophia.psm1

@ -135,7 +135,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" | ConvertFrom-Json).Sophia_Script_Windows_10_LTSC
$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_LTSC
$CurrentRelease = (Get-Module -Name Sophia).Version.ToString()
switch ([System.Version]$LatestRelease -gt [System.Version]$CurrentRelease)
{

Loading…
Cancel
Save