1
1
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:
Frantisek Sumsal 2023-03-24 15:19:21 +01:00
parent aadbd81f7f
commit eedd1da9f9

View File

@ -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