aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Bächler <thomas@archlinux.org>2007-10-21 18:51:51 +0200
committerThomas Bächler <thomas@archlinux.org>2007-10-21 18:51:51 +0200
commitc5cffb501763c355299e593d16089fa5e56097b2 (patch)
tree7f9dfd4672db205b878ba8163fa733c4318debe3
parente3f7fc94d40e13f65e00adb3d7c48fb6f790c7d7 (diff)
downloadinitscripts-c5cffb501763c355299e593d16089fa5e56097b2.tar.xz
Fix broken terminal detection, disable colors when the terminal is unknown.
-rw-r--r--functions2
1 files changed, 2 insertions, 0 deletions
diff --git a/functions b/functions
index acbea4d..8b5ecf1 100644
--- a/functions
+++ b/functions
@@ -30,6 +30,8 @@ if [ -n "${TERM_COLORS}" ]; then
[ "${TERM_COLORS}" -lt 8 ] && USECOLOR=""
;;
esac
+else
+ USECOLOR=""
fi
unset TERM_COLORS