mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-25 06:03:40 +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);
|
return table_log_print_error(r);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (arg_legend) {
|
if (arg_legend && arg_output != OUTPUT_JSON) {
|
||||||
if (table_get_rows(t) > 1)
|
if (table_get_rows(t) > 1)
|
||||||
printf("\n%zu services listed.\n", table_get_rows(t) - 1);
|
printf("\n%zu services listed.\n", table_get_rows(t) - 1);
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user