Merge pull request #58 from resin-io/feature/tty-feedback

Quiet console.info if stdout is being redirected
This commit is contained in:
Juan Cruz Viotti 2015-06-02 17:08:31 -04:00
commit 142e2c0a65
2 changed files with 2 additions and 2 deletions

View File

@ -164,7 +164,7 @@
}, function(callback) {
var cli;
cli = capitano.parse(process.argv);
if (cli.global.quiet) {
if (cli.global.quiet || !process.stdout.isTTY) {
console.info = _.noop;
}
if (cli.global.project != null) {

View File

@ -135,7 +135,7 @@ async.waterfall([
(callback) ->
cli = capitano.parse(process.argv)
if cli.global.quiet
if cli.global.quiet or not process.stdout.isTTY
console.info = _.noop
if cli.global.project?