cookutils rev 606
cooker.cgi: add more_button function (again)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Aug 07 16:39:45 2013 +0000 (2013-08-07) |
parents | 7726c80e3d42 |
children | 9899fbd15073 |
files | web/cooker.cgi |
line diff
1.1 --- a/web/cooker.cgi Wed Aug 07 13:52:25 2013 +0000 1.2 +++ b/web/cooker.cgi Wed Aug 07 16:39:45 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}) -gt ${4:-12} ] && 1.8 + [ $(wc -l ${3:-$CACHE/$1} | awk '{ print $1 }') -gt ${4:-12} ] && 1.9 echo "<a class=\"button\" href=\"cooker.cgi?file=$1\">$2</a>" 1.10 } 1.11