cookutils rev 103

README: one more coding style rule
author Christophe Lincoln <pankso@slitaz.org>
date Mon May 09 00:35:01 2011 +0200 (2011-05-09)
parents 84cd54ac0008
children 859e1d1f051c
files README cook
line diff
     1.1 --- a/README	Mon May 09 00:28:59 2011 +0200
     1.2 +++ b/README	Mon May 09 00:35:01 2011 +0200
     1.3 @@ -120,6 +120,7 @@
     1.4  	  esac
     1.5  	* Make commands and options as short as possible
     1.6  	* Think to log everything to help debug
     1.7 +	* Quote variables if used in a test: [ "$var" ]
     1.8  
     1.9  
    1.10  ================================================================================
     2.1 --- a/cook	Mon May 09 00:28:59 2011 +0200
     2.2 +++ b/cook	Mon May 09 00:35:01 2011 +0200
     2.3 @@ -239,7 +239,7 @@
     2.4  	files=$(cat taz/$pkg-*/files.list | wc -l)
     2.5  	cookdate=$(date "+%Y-%m-%d %H:%M")
     2.6  	sec=$time
     2.7 -	min="[ $(($time / 60)m ]"
     2.8 +	min="[ $(($time / 60))m ]"
     2.9  	[ "$min" == 0 ] && min=""
    2.10  	gettext "Summary for:"; echo " $PACKAGE $VERSION"
    2.11  	separator