Skip to content

Commit

Permalink
Merge pull request #351 from garrettrowell/env_vars_spaces
Browse files Browse the repository at this point in the history
double quote when passing env var values
  • Loading branch information
jordanbreen28 authored Oct 17, 2024
2 parents 6eb7c85 + 45e9d3a commit cd3f468
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/templates/init.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ function Invoke-PowerShellUserCode {
# Set any provided environment variables
if ($AdditionalEnvironmentVariables -ne $null) {
$AdditionalEnvironmentVariables.GetEnumerator() |
ForEach-Object -Process { Set-Item -Path "Env:\$($_.Name)" -Value $_.Value }
ForEach-Object -Process { Set-Item -Path "Env:\$($_.Name)" -Value "$($_.Value)" }
}

# We clear the commands before each new command to avoid command pollution This does not need
Expand Down

0 comments on commit cd3f468

Please sign in to comment.