Allow to quiet download progress bar

This commit is contained in:
Juan Cruz Viotti 2015-01-20 15:41:14 -04:00
parent aa6680d57a
commit 9cb84ee612

View File

@ -79,8 +79,8 @@ exports.download =
received = 0
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)
return if bar.complete or not state?