Skip to content

Commit dda3a17

Browse files
committed
Fixed an issue with passing process.env to the child processes
1 parent 81eb95e commit dda3a17

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/installer/get-platformio.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/proc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ function _runCommand(cmd, args, callback, options) {
162162
}
163163

164164
// path PlatformIO's PATH
165-
const envClone = Object.create(options.spawnOptions.env || process.env);
165+
const envClone = Object.assign({}, options.spawnOptions.env || process.env);
166166
if (process.env.PLATFORMIO_PATH) {
167167
envClone.PATH = process.env.PLATFORMIO_PATH;
168168
envClone.Path = process.env.PLATFORMIO_PATH;

0 commit comments

Comments
 (0)