mirror of
https://github.com/balena-io/balena-cli.git
synced 2025-01-19 11:16:38 +00:00
Merge pull request #58 from resin-io/feature/tty-feedback
Quiet console.info if stdout is being redirected
This commit is contained in:
commit
142e2c0a65
@ -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) {
|
||||
|
@ -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?
|
||||
|
Loading…
Reference in New Issue
Block a user