From a178d532020aa159b27fa0fa5e9bb7490c5c35e6 Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Thu, 6 Dec 2007 10:48:00 +0000 Subject: Move RC_ to EINFO_ for all env vars related to einfo. --- sh/functions.sh | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'sh') diff --git a/sh/functions.sh b/sh/functions.sh index fd67cb2b..00828f54 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 -- cgit v1.2.3