Skip to content

Commit

Permalink
feat(Set-BuildEnvironment): All environment variables are created wit…
Browse files Browse the repository at this point in the history
…h UPPER-CASED names

Fixes #138
  • Loading branch information
fourpastmidnight authored Aug 9, 2023
1 parent 7c3ef31 commit aec7456
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion BuildHelpers/Public/Set-BuildEnvironment.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ function Set-BuildEnvironment {
$BuildHelpersVariables = Get-BuildEnvironment @GBEParams
foreach ($VarName in $BuildHelpersVariables.Keys) {
if($null -ne $BuildHelpersVariables[$VarName]) {
$prefixedVar = "$VariableNamePrefix$VarName"
$prefixedVar = "$VariableNamePrefix$VarName".ToUpperInvariant()

Write-Verbose "storing [$prefixedVar] with value '$($BuildHelpersVariables[$VarName])'."
$Output = New-Item -Path Env:\ -Name $prefixedVar -Value $BuildHelpersVariables[$VarName] -Force:$Force
Expand Down

0 comments on commit aec7456

Please sign in to comment.