]> arthur.barton.de Git - atom-ax-pipe.git/blobdiff - lib/pipe.coffee
cd to atom.project.path before executing commands. Resolve #1.
[atom-ax-pipe.git] / 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) ->