Skip to content

Commit

Permalink
Merge pull request #1717 from devlead/feature/GH-1693
Browse files Browse the repository at this point in the history
GH1693: Fix key not used when setting process environment variable
  • Loading branch information
gep13 authored Aug 2, 2017
2 parents aaf253a + 83d8032 commit 93ca222
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 93ca222

Please sign in to comment.