Skip to content

Commit 900e6a1

Browse files
authored
Merge pull request #60 from pik/master (thanks @pik!)
Check node version to determine which cwd to use
2 parents cd1e9b4 + a3478eb commit 900e6a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ cmds.forEach(function (cmd) {
102102
cmd = "exec "+cmd;
103103
}
104104
var child = spawn(sh,[shFlag,cmd], {
105-
cwd: process.cwd(),
105+
cwd: process.versions.node < '8.0.0' ? process.cwd : process.cwd(),
106106
env: process.env,
107107
stdio: ['pipe', process.stdout, process.stderr]
108108
})

0 commit comments

Comments
 (0)