diff options
author | Leandro Pereira <leandro@hardinfo.org> | 2021-04-03 16:05:30 -0700 |
---|---|---|
committer | Leandro Pereira <leandro@hardinfo.org> | 2021-04-03 16:05:30 -0700 |
commit | 5ddf73edf0822f22aa091325b89d286161ad3340 (patch) | |
tree | 3639489b55879f3b7dccfbfbf1fb8a0208276ab7 /shell/report.c | |
parent | b937065c4ffefcf026cdd5f90c040752199eb780 (diff) |
Add command-line parameter to quieten HardInfo when in non-GUI mode
Diffstat (limited to 'shell/report.c')
-rw-r--r-- | shell/report.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/shell/report.c b/shell/report.c index ccd75c99..d77a6dca 100644 --- a/shell/report.c +++ b/shell/report.c @@ -723,7 +723,7 @@ report_create_inner_from_module_list(ReportContext * ctx, GSList * modules) ShellModule *module = (ShellModule *) modules->data; GSList *entries; - if (!params.gui_running) + if (!params.gui_running && !params.quiet) fprintf(stderr, "\033[40;32m%s\033[0m\n", module->name); report_title(ctx, module->name); @@ -732,7 +732,7 @@ report_create_inner_from_module_list(ReportContext * ctx, GSList * modules) ShellModuleEntry *entry = (ShellModuleEntry *) entries->data; if (entry->flags & MODULE_FLAG_HIDE) continue; - if (!params.gui_running) + if (!params.gui_running && !params.quiet) fprintf(stderr, "\033[2K\033[40;32;1m %s\033[0m\n", entry->name); |