Skip to content

Commit

Permalink
Check node version to determine which cwd to use
Browse files Browse the repository at this point in the history
  • Loading branch information
pik committed Jun 27, 2017
1 parent 746e1f3 commit a3478eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ cmds.forEach(function (cmd) {
cmd = "exec "+cmd;
}
var child = spawn(sh,[shFlag,cmd], {
cwd: process.cwd(),
cwd: process.versions.node < '8.0.0' ? process.cwd : process.cwd(),
env: process.env,
stdio: ['pipe', process.stdout, process.stderr]
})
Expand Down

0 comments on commit a3478eb

Please sign in to comment.