slitaz-base-files diff rootfs/lib/libtaz.sh @ rev 168

small fix to colorize()
author Christophe Lincoln <pankso@slitaz.org>
date Tue May 15 16:03:50 2012 +0200 (2012-05-15)
parents 1db99ad848a8
children 076cd48b7ee8
line diff
     1.1 --- a/rootfs/lib/libtaz.sh	Tue May 15 15:48:14 2012 +0200
     1.2 +++ b/rootfs/lib/libtaz.sh	Tue May 15 16:03:50 2012 +0200
     1.3 @@ -90,7 +90,7 @@
     1.4  	case $output in
     1.5  		raw|gtk|html) echo "$1" ;;
     1.6  		*)
     1.7 -			: ${color=38}
     1.8 +			[ "$color" ] || color=38
     1.9  			echo -e "\\033[1;${color}m${1}\\033[0;39m" ;;
    1.10  	esac
    1.11  	unset color