trivial: Only show the non-interactive text status if interesting

This commit is contained in:
Richard Hughes 2023-02-15 16:42:15 +00:00 committed by Mario Limonciello
parent 023a5f373d
commit 608a08a226

View File

@ -671,7 +671,7 @@ fu_console_set_progress(FuConsole *self, FwupdStatus status, guint percentage)
self->percentage = percentage;
/* dumb */
if (!self->interactive) {
if (!self->interactive && percentage != 0 && status != FWUPD_STATUS_IDLE) {
g_printerr("%s: %u%%\n", fu_console_status_to_string(status), percentage);
return;
}