]> arthur.barton.de Git - atom-ax-pipe.git/commitdiff
cd to atom.project.path before executing commands. Resolve #1.
authormoshee <moshee@displaynone.us>
Wed, 12 Nov 2014 17:30:08 +0000 (09:30 -0800)
committermoshee <moshee@displaynone.us>
Wed, 12 Nov 2014 17:30:08 +0000 (09:30 -0800)
lib/pipe.coffee

index 8db43da6be01e501a02c1809e6682f3a6f9f3b19..3a455eea73b5fcfd63a447972e5859077a8db463 100644 (file)
@@ -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) ->