Align correctly when passing output to grep.
This commit is contained in:
parent
76d3ee58e1
commit
034a18c548
@ -55,7 +55,7 @@ static void print_service (char *service)
|
||||
} else
|
||||
snprintf (status, sizeof (status), " stopped ");
|
||||
|
||||
if (! rc_env_bool ("RC_NOCOLOR"))
|
||||
if (isatty (fileno (stdout)) && ! rc_env_bool ("RC_NOCOLOR"))
|
||||
printf ("\n");
|
||||
ebracket (cols, color, status);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user