summaryrefslogtreecommitdiff
path: root/sh
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2007-12-06 10:48:00 +0000
committerRoy Marples <roy@marples.name>2007-12-06 10:48:00 +0000
commita178d532020aa159b27fa0fa5e9bb7490c5c35e6 (patch)
tree208bbdd2c47dd04fbd08ef4a15e6298fb19531d1 /sh
parenta31c7cc61e4ef7e03e9d2986e09bb849de2c292f (diff)
downloadopenrc-a178d532020aa159b27fa0fa5e9bb7490c5c35e6.tar.gz
openrc-a178d532020aa159b27fa0fa5e9bb7490c5c35e6.tar.bz2
openrc-a178d532020aa159b27fa0fa5e9bb7490c5c35e6.tar.xz
Move RC_ to EINFO_ for all env vars related to einfo.
Diffstat (limited to 'sh')
-rw-r--r--sh/functions.sh14
1 files changed, 7 insertions, 7 deletions
diff --git a/sh/functions.sh b/sh/functions.sh
index fd67cb2..00828f5 100644
--- a/sh/functions.sh
+++ b/sh/functions.sh
@@ -26,14 +26,14 @@
RC_GOT_FUNCTIONS="yes"
eindent() {
- RC_EINDENT=$((${RC_EINDENT:-0} + 2))
- [ "${RC_EINDENT}" -gt 40 ] && RC_EINDENT=40
- export RC_EINDENT
+ EINFO_INDENT=$((${EINFO_INDENT:-0} + 2))
+ [ "${EINFO_INDENT}" -gt 40 ] && EINFO_INDENT=40
+ export EINFO_INDENT
}
eoutdent() {
- RC_EINDENT=$((${RC_EINDENT:-0} - 2))
- [ "${RC_EINDENT}" -lt 0 ] && RC_EINDENT=0
+ EINFO_INDENT=$((${EINFO_INDENT:-0} - 2))
+ [ "${EINFO_INDENT}" -lt 0 ] && EINFO_INDENT=0
return 0
}
@@ -166,12 +166,12 @@ unset _sanitize_path
for arg; do
case "${arg}" in
--nocolor|--nocolour|-C)
- export RC_NOCOLOR="yes"
+ export EINFO_COLOR="NO"
;;
esac
done
-if [ -z "${GOOD}" ] && ! yesno "${RC_NOCOLOR}"; then
+if [ -z "${GOOD}" ] && yesno ${EINFO_COLOR:-YES}; then
eval $(eval_ecolors)
fi