cookutils rev 607

The directories install taz & source may not exist
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Aug 11 08:36:57 2013 +0000 (2013-08-11)
parents 2bc594a71616
children d863b4f2b6cb
files cook web/cooker.cgi
line diff
     1.1 --- a/cook	Wed Aug 07 16:39:45 2013 +0000
     1.2 +++ b/cook	Sun Aug 11 08:36:57 2013 +0000
     1.3 @@ -511,7 +511,7 @@
     1.4  
     1.5  	[ "$QA" ] && receipt_quality
     1.6  	cd $pkgdir
     1.7 -	rm -rf install taz source
     1.8 +	rm -rf install taz source 2> /dev/null
     1.9  
    1.10  	# Disable -pipe if less than 512Mb free RAM.
    1.11  	free=$(free | fgrep '/+ buffers' | tr -s ' ' | cut -f 4 -d ' ')
     2.1 --- a/web/cooker.cgi	Wed Aug 07 16:39:45 2013 +0000
     2.2 +++ b/web/cooker.cgi	Sun Aug 11 08:36:57 2013 +0000
     2.3 @@ -110,7 +110,7 @@
     2.4  
     2.5  # Optional full list button
     2.6  more_button() {
     2.7 -	[ $(wc -l ${3:-$CACHE/$1} | awk '{ print $1 }') -gt ${4:-12} ] &&
     2.8 +	[ $(wc -l < ${3:-$CACHE/$1}) -gt ${4:-12} ] &&
     2.9  	echo "<a class=\"button\" href=\"cooker.cgi?file=$1\">$2</a>"
    2.10  }
    2.11