1
0
mirror of https://github.com/systemd/systemd.git synced 2025-02-07 05:57:46 +03:00

userdbctl: use ansi_highlight_green_red() where appropriate

This commit is contained in:
Mike Yuan 2024-12-10 19:24:05 +01:00
parent 26c29eed53
commit 8f3862ceed
No known key found for this signature in database
GPG Key ID: 417471C0A40F58B3

View File

@ -1035,7 +1035,7 @@ static int display_services(int argc, char *argv[], void *userdata) {
r = table_add_many(t,
TABLE_STRING, de->d_name,
TABLE_STRING, no ?: "yes",
TABLE_SET_COLOR, no ? ansi_highlight_red() : ansi_highlight_green());
TABLE_SET_COLOR, ansi_highlight_green_red(!no));
if (r < 0)
return table_log_add_error(r);
}