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:
parent
26c29eed53
commit
8f3862ceed
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user