From 2707312caddc16fc2024c451f76895af5a81ed7e Mon Sep 17 00:00:00 2001 From: Dmitry Nefedov Date: Fri, 6 Aug 2021 09:10:56 +0300 Subject: [PATCH] Fixed typo in the build checking --- Sophia/PowerShell 7/Localizations/en-US/Sophia.psd1 | 2 +- Sophia/PowerShell 7/Module/Sophia.psm1 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Sophia/PowerShell 7/Localizations/en-US/Sophia.psd1 b/Sophia/PowerShell 7/Localizations/en-US/Sophia.psd1 index 8edaef5b..476acd3e 100644 --- a/Sophia/PowerShell 7/Localizations/en-US/Sophia.psd1 +++ b/Sophia/PowerShell 7/Localizations/en-US/Sophia.psd1 @@ -1,7 +1,7 @@ ConvertFrom-StringData -StringData @' UnsupportedOSBitness = The script supports Windows 10 x64 only UnsupportedOSBuild = The script supports Windows 10 2004/20H2/21H1 versions and higher -UpdateWarning = Your Windows 10 build: {0}.{1}.{2}.{3}. Supported build: 19041.1151 and higher +UpdateWarning = Your Windows 10 build: {0}.{1}. Supported build: 19041.1151 and higher UnsupportedLanguageMode = The PowerShell session in running in a limited language mode LoggedInUserNotAdmin = The logged-on user doesn't have admin rights UnsupportedPowerShell = You're trying to run script via PowerShell {0}. Run the script in the appropriate PowerShell version diff --git a/Sophia/PowerShell 7/Module/Sophia.psm1 b/Sophia/PowerShell 7/Module/Sophia.psm1 index a6f8045b..05854323 100644 --- a/Sophia/PowerShell 7/Module/Sophia.psm1 +++ b/Sophia/PowerShell 7/Module/Sophia.psm1 @@ -83,7 +83,7 @@ function Checkings $false { $Version = Get-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows nt\CurrentVersion" - $Version = $Version.CurrentMinorVersionNumber, $Version.CurrentBuild, $Version.UBR + $Version = $Version.CurrentBuild, $Version.UBR Write-Warning -Message ($Localization.UpdateWarning -f $Version)