From 0495018de76d5f18a14b3adf6522ff0421aa5d35 Mon Sep 17 00:00:00 2001 From: Dave Reisner Date: Tue, 2 Aug 2011 13:24:04 -0400 Subject: lsinitcpio: disable color when stdout isn't a tty This was a copypasta error when taking this from makepkg, which has special concerns in this regard. lsinitcpio should only concern itself with stdout. Signed-off-by: Dave Reisner --- lsinitcpio | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lsinitcpio b/lsinitcpio index ca2b224..95c0500 100755 --- a/lsinitcpio +++ b/lsinitcpio @@ -62,7 +62,7 @@ shift $(( OPTIND - 1 )) declare image=$1 -if [[ -t 2 ]] && (( color )); then +if [[ -t 1 ]] && (( color )); then # prefer terminal safe colored and bold text when tput is supported if tput setaf 0 &>/dev/null; then NC="$(tput sgr0)" -- cgit v1.2.3-24-g4f1b