From: moshee Date: Wed, 12 Nov 2014 17:30:08 +0000 (-0800) Subject: cd to atom.project.path before executing commands. Resolve #1. X-Git-Tag: v0.3.0~3 X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d7546bee1a1df969e902e47da5b2caaf022a1203;p=atom-ax-pipe.git cd to atom.project.path before executing commands. Resolve #1. --- 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) ->