From: Frantisek Sumsal Date: Fri, 24 Mar 2023 14:19:21 +0000 (+0100) Subject: userdbctl: don't show legend when dumping JSON with services X-Git-Tag: v254-rc1~921^2~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eedd1da9f992f9b9d38e298207428500b745156b;p=thirdparty%2Fsystemd.git userdbctl: don't show legend when dumping JSON with services --- diff --git a/src/userdb/userdbctl.c b/src/userdb/userdbctl.c index b728cdc1c36..86b8d383df0 100644 --- a/src/userdb/userdbctl.c +++ b/src/userdb/userdbctl.c @@ -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