slitaz-base-files rev 176
Update several function's colorize
author | Christian Mesh <meshca@clarkson.edu> |
---|---|
date | Sat May 19 03:57:26 2012 -0500 (2012-05-19) |
parents | fa75f9c09dd8 |
children | efb8e0291f24 |
files | rootfs/lib/libtaz.sh testsuite.sh |
line diff
1.1 --- a/rootfs/lib/libtaz.sh Sat May 19 03:35:25 2012 -0500 1.2 +++ b/rootfs/lib/libtaz.sh Sat May 19 03:57:26 2012 -0500 1.3 @@ -116,7 +116,7 @@ 1.4 1.5 # Display debug info when --debug is used. 1.6 debug() { 1.7 - [ "$debug" ] && echo "$(colorize "DEBUG:" $decolor) $1" 1.8 + [ "$debug" ] && echo "$(colorize $decolor "DEBUG:") $1" 1.9 } 1.10 1.11 # Gettextize yes/no.
2.1 --- a/testsuite.sh Sat May 19 03:35:25 2012 -0500 2.2 +++ b/testsuite.sh Sat May 19 03:57:26 2012 -0500 2.3 @@ -26,7 +26,7 @@ 2.4 check_functions() { 2.5 lib=$1 2.6 echo -n "$(boldify "Checking: $(basename $lib) functions")" 2.7 - indent 34 "$(colorize $(grep "[a-z]() {" $lib | wc -l) 32)" 2.8 + indent 34 "$(colorize 32 $(grep "[a-z]() {" $lib | wc -l))" 2.9 separator 2.10 grep "[a-z]() {" $lib | while read line 2.11 do