Fix output for no colour
This commit is contained in:
parent
932a4576ce
commit
ab38e54fed
@ -30,7 +30,7 @@ static void print_level (char *level)
|
||||
static void print_service (char *service)
|
||||
{
|
||||
char status[10];
|
||||
int cols = printf (" %s\n", service);
|
||||
int cols = printf (" %s", service);
|
||||
rc_service_state_t state = rc_service_state (service);
|
||||
einfo_color_t color = ECOLOR_BAD;
|
||||
|
||||
@ -54,6 +54,9 @@ static void print_service (char *service)
|
||||
color = ECOLOR_WARN;
|
||||
} else
|
||||
snprintf (status, sizeof (status), " stopped ");
|
||||
|
||||
if (! rc_env_bool ("RC_NOCOLOR"))
|
||||
printf ("\n");
|
||||
ebracket (cols, color, status);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user