Skip to content

Commit 0354efa

Browse files
authored
Merge pull request #26 from Chassis/use-path-after-fix
Use process.env after fixing it
2 parents 703efa3 + 725eab9 commit 0354efa

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/lib/actions/runCommand.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import { spawn } from 'child_process';
33
window.running = {};
44

55
const vagrantEnv = {
6-
...process.env,
76
CLICOLOR_FORCE: 'yes',
87
GIT_COLOR: 'yes',
98

@@ -19,7 +18,10 @@ export default function runCommand(path, command, args = [], opts = {}) {
1918

2019
let spawnOpts = Object.assign({}, {
2120
cwd: path,
22-
env: vagrantEnv,
21+
env: {
22+
...process.env,
23+
...vagrantEnv,
24+
},
2325
}, opts);
2426

2527
const proc = spawn( command, args, spawnOpts );

0 commit comments

Comments
 (0)