cookutils diff web/cooker.cgi @ rev 609
CACHE is global, /tmp is aufs local
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Aug 16 09:14:36 2013 +0000 (2013-08-16) |
parents | 2bc594a71616 |
children | d8add5c9a688 |
line diff
1.1 --- a/web/cooker.cgi Wed Aug 07 16:39:45 2013 +0000 1.2 +++ b/web/cooker.cgi Fri Aug 16 09:14:36 2013 +0000 1.3 @@ -110,7 +110,7 @@ 1.4 1.5 # Optional full list button 1.6 more_button() { 1.7 - [ $(wc -l ${3:-$CACHE/$1} | awk '{ print $1 }') -gt ${4:-12} ] && 1.8 + [ $(wc -l < ${3:-$CACHE/$1}) -gt ${4:-12} ] && 1.9 echo "<a class=\"button\" href=\"cooker.cgi?file=$1\">$2</a>" 1.10 } 1.11