aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2007-11-22 12:20:40 +0000
committerRoy Marples <roy@marples.name>2007-11-22 12:20:40 +0000
commitee61f4630920d576d7c875e72547c98e227e7c66 (patch)
tree658ca2f44b575611376b2733064920f8db551d23
parent4b28587704ea31788f91f27d71b9aa96a45afc9c (diff)
Use yesno
-rw-r--r--sh/functions.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/sh/functions.sh b/sh/functions.sh
index 2be38a65..79aeb3bf 100644
--- a/sh/functions.sh
+++ b/sh/functions.sh
@@ -164,7 +164,7 @@ for arg in "$@" ; do
esac
done
-if [ "${RC_NOCOLOR}" != "yes" -a -z "${GOOD}" ] ; then
+if [ -z "${GOOD}" ] && ! yesno "${RC_NOCOLOR}"; then
eval $(eval_ecolors)
fi