Skip to content

Commit

Permalink
(cake-buildGH-1693) Fix key not used when setting process environment…
Browse files Browse the repository at this point in the history
… variable

* fixes cake-build#1693
  • Loading branch information
devlead committed Aug 2, 2017
1 parent aaf253a commit 83d8032
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Cake.Core/Polyfill/ProcessHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public static void SetEnvironmentVariable(ProcessStartInfo info, string key, str
info.Environment[envKey] = value;
#else
var envKey = info.EnvironmentVariables.Keys.Cast<string>().FirstOrDefault(existingKey => StringComparer.OrdinalIgnoreCase.Equals(existingKey, key)) ?? key;
info.EnvironmentVariables[key] = value;
info.EnvironmentVariables[envKey] = value;
#endif
}
}
Expand Down

0 comments on commit 83d8032

Please sign in to comment.