mirror of
https://github.com/balena-io/balena-cli.git
synced 2024-12-25 00:11:04 +00:00
Allow to quiet download progress bar
This commit is contained in:
parent
aa6680d57a
commit
9cb84ee612
@ -79,8 +79,8 @@ exports.download =
|
|||||||
received = 0
|
received = 0
|
||||||
|
|
||||||
resin.models.os.download osParams, outputFile, callback, (state) ->
|
resin.models.os.download osParams, outputFile, callback, (state) ->
|
||||||
|
return if options.quiet
|
||||||
|
|
||||||
# TODO: Allow quieting this progress bar
|
|
||||||
bar ?= new ui.widgets.Progress('Downloading device OS', state.total)
|
bar ?= new ui.widgets.Progress('Downloading device OS', state.total)
|
||||||
|
|
||||||
return if bar.complete or not state?
|
return if bar.complete or not state?
|
||||||
|
Loading…
Reference in New Issue
Block a user