From 320736ad6ab10866487c9b6843b65e9ae797c177 Mon Sep 17 00:00:00 2001 From: Dmitry Nefedov Date: Sat, 11 Mar 2023 00:15:17 +0300 Subject: [PATCH] Update Sophia.psm1 Updated Sophia.psm1 --- .../Module/Sophia.psm1 | 5 +---- .../Module/Sophia.psm1 | 1 + .../Module/Sophia.psm1 | 4 ++-- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/Sophia_Script_for_Windows_10_LTSC_2019/Module/Sophia.psm1 b/src/Sophia_Script_for_Windows_10_LTSC_2019/Module/Sophia.psm1 index 532539e3..37d1c21a 100644 --- a/src/Sophia_Script_for_Windows_10_LTSC_2019/Module/Sophia.psm1 +++ b/src/Sophia_Script_for_Windows_10_LTSC_2019/Module/Sophia.psm1 @@ -102,6 +102,7 @@ function Checks Write-Warning -Message $Localization.UnsupportedOSBuild Start-Process -FilePath "https://t.me/sophia_chat" Start-Process -FilePath "https://discord.gg/sSryhaEv79" + Start-Process -FilePath "https://github.com/farag2/Sophia-Script-for-Windows#system-requirements" exit } } @@ -250,16 +251,12 @@ function Checks { Write-Warning -Message ($Localization.NoResponse -f "https://github.com") Write-Error -Message ($Localization.NoResponse -f "https://github.com") -ErrorAction SilentlyContinue - - Write-Error -Message ($Localization.RestartFunction -f $MyInvocation.Line) -ErrorAction SilentlyContinue } } catch [System.Net.WebException] { Write-Warning -Message $Localization.NoInternetConnection Write-Error -Message $Localization.NoInternetConnection -ErrorAction SilentlyContinue - - Write-Error -Message ($Localization.RestartFunction -f $MyInvocation.Line) -ErrorAction SilentlyContinue } #region Defender checks diff --git a/src/Sophia_Script_for_Windows_10_LTSC_2021/Module/Sophia.psm1 b/src/Sophia_Script_for_Windows_10_LTSC_2021/Module/Sophia.psm1 index 07045bff..d50fa0e9 100644 --- a/src/Sophia_Script_for_Windows_10_LTSC_2021/Module/Sophia.psm1 +++ b/src/Sophia_Script_for_Windows_10_LTSC_2021/Module/Sophia.psm1 @@ -61,6 +61,7 @@ function Checks { Write-Warning -Message $Localization.UnsupportedOSBitness Start-Process -FilePath "https://t.me/sophia_chat" + Start-Process -FilePath "https://discord.gg/sSryhaEv79" exit } diff --git a/src/Sophia_Script_for_Windows_11_PowerShell_7/Module/Sophia.psm1 b/src/Sophia_Script_for_Windows_11_PowerShell_7/Module/Sophia.psm1 index 91da584f..a55ed226 100644 --- a/src/Sophia_Script_for_Windows_11_PowerShell_7/Module/Sophia.psm1 +++ b/src/Sophia_Script_for_Windows_11_PowerShell_7/Module/Sophia.psm1 @@ -226,8 +226,8 @@ function Checks exit } - # Check whether the script was run via PowerShell 5.1 - if ($PSVersionTable.PSVersion.Major -ne 5) + # Check whether the script was run via PowerShell 7 + if ($PSVersionTable.PSVersion.Major -ne 7) { Write-Warning -Message ($Localization.UnsupportedPowerShell -f $PSVersionTable.PSVersion.Major, $PSVersionTable.PSVersion.Minor) Start-Process -FilePath "https://t.me/sophia_chat"