Skip to content

Commit 143120a

Browse files
committed
Merge pull request tblobaum#6 from shtylman/patch-1
fix for launching outside of project dir
2 parents 31afbc3 + 7fcd7c5 commit 143120a

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
@@ -1,7 +1,7 @@
11
var exec = require('child_process').exec
22

33
function _command (cmd, cb) {
4-
exec(cmd, function (err, stdout, stderr) {
4+
exec(cmd, { cwd: __dirname }, function (err, stdout, stderr) {
55
cb(stdout.split('\n').join(''))
66
})
77
}

0 commit comments

Comments
 (0)