Skip to content

Commit

Permalink
Merge pull request #60 from pik/master (thanks @pik!)
Browse files Browse the repository at this point in the history
Check node version to determine which cwd to use
  • Loading branch information
darkguy2008 authored Oct 18, 2017
2 parents cd1e9b4 + a3478eb commit 900e6a1
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 900e6a1

Please sign in to comment.