diff --git a/build.ps1 b/build.ps1 index 84456c8..9cda4fd 100644 --- a/build.ps1 +++ b/build.ps1 @@ -336,8 +336,8 @@ try $StartInfo.EnvironmentVariables.Clear() - Get-ChildItem -Path env:* | ForEach-Object - { + #Brace must be on same line for foreach-object to work + Get-ChildItem -Path env:* | ForEach-Object { $StartInfo.EnvironmentVariables.Add($_.Name, $_.Value) }