Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Correctly relaying stdout and stderr in Cakefile.

  • Loading branch information...
commit 59c67016ca24865cff620d60417a6dd234bb9b8a 1 parent fae2366
@mauricemach authored
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
Please sign in to comment.
Something went wrong with that request. Please try again.