mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-10 01:17:44 +03:00
userdbctl: don't show legend when dumping JSON with services
This commit is contained in:
parent
aadbd81f7f
commit
eedd1da9f9
@ -962,7 +962,7 @@ static int display_services(int argc, char *argv[], void *userdata) {
|
||||
return table_log_print_error(r);
|
||||
}
|
||||
|
||||
if (arg_legend) {
|
||||
if (arg_legend && arg_output != OUTPUT_JSON) {
|
||||
if (table_get_rows(t) > 1)
|
||||
printf("\n%zu services listed.\n", table_get_rows(t) - 1);
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user