From 034a18c54819532b309e631eb9dfafc9fc11966d Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Wed, 3 Oct 2007 12:45:57 +0000 Subject: Align correctly when passing output to grep. --- src/rc-status.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rc-status.c b/src/rc-status.c index 2d80d5dd..aa7ca30c 100644 --- a/src/rc-status.c +++ b/src/rc-status.c @@ -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); } -- cgit v1.2.3