Skip to content

Commit

Permalink
Fix version check on Node 10
Browse files Browse the repository at this point in the history
Fixes #65
  • Loading branch information
skooda committed Jun 1, 2018
1 parent 4b5bfde commit 04ffe15
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.versions.node < '8.0.0' ? process.cwd : process.cwd(),
cwd: parseInt(process.versions.node) < 8 ? process.cwd : process.cwd(),
env: process.env,
stdio: ['pipe', process.stdout, process.stderr]
})
Expand Down

0 comments on commit 04ffe15

Please sign in to comment.