Correct Variable Name [YamlCreate.ps1] (#23271)

* Correct Variable Name [YamlCreate.ps1]

* Version Update 😁
This commit is contained in:
Vedant Mohan Goyal authored and GitHub committed 2021-08-04 11:13:48 -07:00
1 parent 4025a6ec9b
commit ca7be8ea51
1 file changed
+2 -2
+2 -2
View File
@@ -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'}