Skip to content

Commit d585386

Browse files
authoredMay 22, 2023
allow user set PATH
1 parent 43bdacc commit d585386

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎lib/monitor/run.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ function run(options) {
6464

6565
const spawnOptions = {
6666
env: Object.assign({}, process.env, options.execOptions.env, {
67-
PATH: binPath + path.delimiter + process.env.PATH,
67+
PATH: binPath + path.delimiter + options.execOptions.env?.PATH || process.env.PATH,
6868
}),
6969
stdio: stdio,
7070
};

0 commit comments

Comments
 (0)
Please sign in to comment.