Skip to content
This repository was archived by the owner on Apr 7, 2021. It is now read-only.

Commit 9c89c2a

Browse files
committed
fix(cmd): make sure to use our own, enriched path
1 parent c2f6f18 commit 9c89c2a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,9 @@ function main (argv) {
4545
getCmdPath(argv.command, argv.package, argv),
4646
getEnv(argv),
4747
(cmdPath, env) => {
48+
const currPath = process.env.PATH
4849
process.env = env
50+
process.env.PATH = currPath
4951
return child.runCommand(cmdPath, argv.cmdOpts, argv)
5052
}
5153
).catch(err => {

0 commit comments

Comments
 (0)