From d7546bee1a1df969e902e47da5b2caaf022a1203 Mon Sep 17 00:00:00 2001 From: moshee Date: Wed, 12 Nov 2014 09:30:08 -0800 Subject: [PATCH] cd to atom.project.path before executing commands. Resolve #1. --- lib/pipe.coffee | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/pipe.coffee b/lib/pipe.coffee index 8db43da..3a455ee 100644 --- a/lib/pipe.coffee +++ b/lib/pipe.coffee @@ -26,6 +26,7 @@ module.exports = stdout = '' stderr = '' + commandString = "cd #{atom.project.path} && #{commandString}" proc = spawn process.env.SHELL, ["-l", "-c", commandString] proc.stdout.on 'data', (text) -> -- 2.39.2