From 2c42fed35a7352eeaacff20aa08614832d236a63 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Mon, 26 Jun 2006 05:39:35 +0000 Subject: Allow /etc/portage/color.map to control colors associated with einfo, ewarn, etc... svn path=/main/trunk/; revision=3665 --- bin/isolated-functions.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'bin') diff --git a/bin/isolated-functions.sh b/bin/isolated-functions.sh index 94ff1c983..d5d9b572d 100644 --- a/bin/isolated-functions.sh +++ b/bin/isolated-functions.sh @@ -200,11 +200,11 @@ set_colors() { ENDCOL=$'\e[A\e['${COLS}'C' # Now, ${ENDCOL} will move us to the end of the # column; irregardless of character width - GOOD=$'\e[32;01m' - WARN=$'\e[33;01m' - BAD=$'\e[31;01m' - HILITE=$'\e[36;01m' - BRACKET=$'\e[34;01m' + [ -z "${GOOD}" ] && GOOD=$'\e[32;01m' + [ -z "${WARN}" ] && WARN=$'\e[33;01m' + [ -z "${BAD}" ] && BAD=$'\e[31;01m' + [ -z "${HILITE}" ] && HILITE=$'\e[36;01m' + [ -z "${BRACKET}" ] && BRACKET=$'\e[34;01m' NORMAL=$'\e[0m' } -- cgit v1.2.3-1-g7c22