Stop overriding process.env

Overriding process.env removes case insensitivy for environment
variables on Windows. (Causes problems with 'Path' vs 'PATH')
This commit is contained in:
Steven Edouard
2016-01-14 01:39:23 -05:00
committed by Martijn Walraven
parent 8abbf3012f
commit fdb705d1ed

View File

@@ -634,7 +634,10 @@ mobile-config.js accordingly.`);
const oldEnv = process.env;
if (env) {
process.env = env;
// this preserves case insensitivity for PATH on windows
Object.keys(env).forEach(key => {
process.env[key] = env[key];
});
}
try {