Remove check for stdout redirection

This commit is contained in:
Michael B. Gale
2023-03-08 18:09:09 +00:00
parent ce937e78c0
commit 695160d480

View File

@@ -199,12 +199,8 @@ namespace Semmle.Autobuild.Shared
if (workingDirectory is not null)
pi.WorkingDirectory = workingDirectory;
// Environment variables can only be used when not redirecting stdout
if (!redirectStandardOutput)
{
if (environment is not null)
environment.ForEach(kvp => pi.Environment[kvp.Key] = kvp.Value);
}
environment?.ForEach(kvp => pi.Environment[kvp.Key] = kvp.Value);
return pi;
}