Overwrite existing env vars
This commit is contained in:
parent
27f8300e82
commit
e372b32b61
1 changed files with 1 additions and 1 deletions
|
@ -158,7 +158,7 @@ namespace Microsoft.DotNet.Cli.Utils
|
|||
|
||||
public Command EnvironmentVariable(string name, string value)
|
||||
{
|
||||
_process.StartInfo.Environment.Add(name, value);
|
||||
_process.StartInfo.Environment[name] = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue