From 4454c36a6648ff9701aec00a73548839233c1c65 Mon Sep 17 00:00:00 2001 From: Martin Schlemmer Date: Thu, 6 Jul 2006 10:56:30 +0000 Subject: Only print info if we have a controlling terminal. Signed-off-by: Martin Schlemmer --- data/sandbox.bashrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'data/sandbox.bashrc') diff --git a/data/sandbox.bashrc b/data/sandbox.bashrc index 74c7c97..cc3dbf4 100644 --- a/data/sandbox.bashrc +++ b/data/sandbox.bashrc @@ -20,7 +20,7 @@ if [[ ${SANDBOX_INTRACTV} == "1" ]] ; then source /etc/profile - ( + [[ -t 1 ]] && ( [[ ${NOCOLOR} == "true" || ${NOCOLOR} == "yes" || ${NOCOLOR} == "1" ]] && \ export RC_NOCOLOR="yes" source /sbin/functions.sh -- cgit v1.2.3-65-gdbad