slitaz-base-files rev 159
Removed duplicate status function I introduced
author | Christian Mesh <meshca@clarkson.edu> |
---|---|
date | Fri May 11 11:20:19 2012 -0500 (2012-05-11) |
parents | 348393c7261e |
children | f359ebd9f721 |
files | rootfs/lib/libtaz.sh |
line diff
1.1 --- a/rootfs/lib/libtaz.sh Fri May 11 11:13:15 2012 -0500 1.2 +++ b/rootfs/lib/libtaz.sh Fri May 11 11:20:19 2012 -0500 1.3 @@ -110,26 +110,3 @@ 1.4 *) echo "$1" ;; 1.5 esac 1.6 } 1.7 - 1.8 -# Return command status. Default to colored console output. 1.9 -status() { 1.10 - local check=$? 1.11 - case $output in 1.12 - raw|gtk) 1.13 - done=" $okmsg" 1.14 - error=" $ermsg" ;; 1.15 - html) 1.16 - done=" <span class='done'>$okmsg</span>" 1.17 - error=" <span class='error'>$ermsg</span>" ;; 1.18 - *) 1.19 - cols=$(stty -a -F /dev/tty | head -n 1 | cut -d ";" -f 3 | awk '{print $2}') 1.20 - local scol=$(($cols - 10)) 1.21 - done="\\033[${scol}G[ \\033[1;${okcolor}m${okmsg}\\033[0;39m ]" 1.22 - error="\\033[${scol}G[ \\033[1;${ercolor}m${ermsg}\\033[0;39m ]" ;; 1.23 - esac 1.24 - if [ $check = 0 ]; then 1.25 - echo -e "$done" 1.26 - else 1.27 - echo -e "$error" 1.28 - fi 1.29 -}