summaryrefslogtreecommitdiff
path: root/sh
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2007-04-17 07:11:27 +0000
committerRoy Marples <roy@marples.name>2007-04-17 07:11:27 +0000
commit0f92b5e7df4ead366984b5624de12446bd968478 (patch)
tree1d1dbedcd4fb1d594c9bfe3a40c303b71a1e3394 /sh
parent54d297725e54cfde2548f888583b3ea5db039bc4 (diff)
downloadopenrc-0f92b5e7df4ead366984b5624de12446bd968478.tar.gz
openrc-0f92b5e7df4ead366984b5624de12446bd968478.tar.bz2
openrc-0f92b5e7df4ead366984b5624de12446bd968478.tar.xz
Allow user vars for colours in our shell scripts too
Diffstat (limited to 'sh')
-rw-r--r--sh/functions.sh10
1 files changed, 5 insertions, 5 deletions
diff --git a/sh/functions.sh b/sh/functions.sh
index d1327ad..48505c5 100644
--- a/sh/functions.sh
+++ b/sh/functions.sh
@@ -145,11 +145,11 @@ done
if [ "${RC_NOCOLOR}" != "yes" -a -z "${GOOD}" ] ; then
if color_terminal ; then
- GOOD=$'\e[32;01m'
- WARN=$'\e[33;01m'
- BAD=$'\e[31;01m'
- HILITE=$'\e[36;01m'
- BRACKET=$'\e[34;01m'
+ GOOD=${EINFO_GOOD:-$'\e[32;01m'}
+ WARN=${EINFO_WARN:-$'\e[33;01m'}
+ BAD=${EINFO_BAD:-$'\e[31;01m'}
+ HILITE=${EINFO_HILITE:-$'\e[36;01m'}
+ BRACKET=${EINFO_BRACKET:-$'\e[34;01m'}
NORMAL=$'\e[0m'
fi
fi