Skip to content

Commit cd3f468

Browse files
Merge pull request #351 from garrettrowell/env_vars_spaces
double quote when passing env var values
2 parents 6eb7c85 + 45e9d3a commit cd3f468

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/templates/init.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ function Invoke-PowerShellUserCode {
152152
# Set any provided environment variables
153153
if ($AdditionalEnvironmentVariables -ne $null) {
154154
$AdditionalEnvironmentVariables.GetEnumerator() |
155-
ForEach-Object -Process { Set-Item -Path "Env:\$($_.Name)" -Value $_.Value }
155+
ForEach-Object -Process { Set-Item -Path "Env:\$($_.Name)" -Value "$($_.Value)" }
156156
}
157157

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

0 commit comments

Comments
 (0)