From ca7be8ea518dbf0097b244f42e5528a3a2be24ff Mon Sep 17 00:00:00 2001 From: Vedant Mohan Goyal <83997633+vedantmgoyal2009@users.noreply.github.com> Date: Wed, 4 Aug 2021 23:43:48 +0530 Subject: [PATCH] Correct Variable Name [YamlCreate.ps1] (#23271) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Correct Variable Name [YamlCreate.ps1] * Version Update 😁 --- Tools/YamlCreate.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Tools/YamlCreate.ps1 b/Tools/YamlCreate.ps1 index 4909a34186d..93ba78e0ae7 100644 --- a/Tools/YamlCreate.ps1 +++ b/Tools/YamlCreate.ps1 @@ -1,6 +1,6 @@ #Requires -Version 5 $PSVersion = (Get-Host).Version.Major -$ScriptHeader = '# Created using YamlCreate.ps1 v1.1.5' +$ScriptHeader = '# Created using YamlCreate.ps1 v1.1.6' <# .SYNOPSIS @@ -329,7 +329,7 @@ Function Read-WinGet-InstallerValues { Write-Host Write-Host -ForegroundColor 'Yellow' -Object '[Optional] Enter the installer locale. For example: en-US, en-CA' Write-Host -ForegroundColor 'Blue' -Object 'https://docs.microsoft.com/openspecs/office_standards/ms-oe376/6c085406-a698-4e12-9d4d-c3b0ee3dbc4a' - $ProductCode = Read-Host -Prompt 'InstallerLocale' | TrimString + $InstallerLocale = Read-Host -Prompt 'InstallerLocale' | TrimString } while (-not [string]::IsNullOrWhiteSpace($InstallerLocale) -and ($InstallerLocale -gt 10)) if ([string]::IsNullOrWhiteSpace($InstallerLocale)) {$InstallerLocale = 'en-US'}