tazpanel rev 460

lib/libtazpanel: fix blk2h
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Apr 13 12:44:30 2015 +0200 (2015-04-13)
parents 5d33b8aaf36d
children 64df20b58acc
files lib/libtazpanel
line diff
     1.1 --- a/lib/libtazpanel	Mon Apr 13 11:33:19 2015 +0200
     1.2 +++ b/lib/libtazpanel	Mon Apr 13 12:44:30 2015 +0200
     1.3 @@ -316,7 +316,11 @@
     1.4  
     1.5  
     1.6  blk2h() {
     1.7 -	[ "$1" ] && echo $1 || cat | awk '{
     1.8 +	if [ "$1" ]; then
     1.9 +		echo $1
    1.10 +	else
    1.11 +		cat
    1.12 +	fi | awk '{
    1.13  	n = $0/2
    1.14  	for (i = 1; n > 1024; i++)
    1.15  		n /= 1024