Permalink
Browse files

Correctly relaying stdout and stderr in Cakefile.

  • Loading branch information...
1 parent fae2366 commit 59c67016ca24865cff620d60417a6dd234bb9b8a @mauricemach committed Aug 20, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 Cakefile
View
4 Cakefile
@@ -22,7 +22,7 @@ run = (args...) ->
command += ' ' + params.join ' ' if params?
cmd = spawn '/bin/sh', ['-c', command], options
- cmd.stdout.on 'data', (data) -> log data.toString()
- cmd.stderr.on 'data', (data) -> log data.toString()
+ cmd.stdout.on 'data', (data) -> process.stdout.write data
+ cmd.stderr.on 'data', (data) -> process.stderr.write data
process.on 'SIGHUP', -> cmd.kill()
cmd.on 'exit', (code) -> callback() if callback? and code is 0

0 comments on commit 59c6701

Please sign in to comment.