diff options
author | Frantisek Sumsal <frantisek@sumsal.cz> | 2023-03-24 15:19:21 +0100 |
---|---|---|
committer | Frantisek Sumsal <frantisek@sumsal.cz> | 2023-03-24 15:19:21 +0100 |
commit | eedd1da9f992f9b9d38e298207428500b745156b (patch) | |
tree | 7beff9737b233b0b3c13ec9e6fad83915a0ab391 /src/userdb | |
parent | aadbd81f7ffbc313d0541c15455211dddeedbfde (diff) | |
download | systemd-eedd1da9f992f9b9d38e298207428500b745156b.tar.gz |
userdbctl: don't show legend when dumping JSON with services
Diffstat (limited to 'src/userdb')
-rw-r--r-- | src/userdb/userdbctl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/userdb/userdbctl.c b/src/userdb/userdbctl.c index b728cdc1c3..86b8d383df 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 |