aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Schlemmer <azarah@gentoo.org>2006-07-06 10:56:30 +0000
committerMartin Schlemmer <azarah@gentoo.org>2006-07-06 10:56:30 +0000
commit4454c36a6648ff9701aec00a73548839233c1c65 (patch)
treefd6cf0247ce15e7517557071208ebf5fc90342b9 /data/sandbox.bashrc
parentFixup color handling. (diff)
downloadsandbox-4454c36a6648ff9701aec00a73548839233c1c65.tar.gz
sandbox-4454c36a6648ff9701aec00a73548839233c1c65.tar.bz2
sandbox-4454c36a6648ff9701aec00a73548839233c1c65.zip
Only print info if we have a controlling terminal.
Signed-off-by: Martin Schlemmer <azarah@gentoo.org>
Diffstat (limited to 'data/sandbox.bashrc')
-rw-r--r--data/sandbox.bashrc2
1 files changed, 1 insertions, 1 deletions
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