cookutils rev 493
cooker.cgi: Fixed description link.
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Jun 15 13:43:32 2012 +0200 (2012-06-15) |
parents | 1b4e8a04182a |
children | e93d4ea89030 |
files | web/cooker.cgi |
line diff
1.1 --- a/web/cooker.cgi Thu Jun 14 15:45:00 2012 +0000 1.2 +++ b/web/cooker.cgi Fri Jun 15 13:43:32 2012 +0200 1.3 @@ -265,7 +265,7 @@ 1.4 pkg=${QUERY_STRING#description=} 1.5 echo "<h2>Description of $pkg</h2>" 1.6 dir=$(ls -d $WOK/$pkg/taz/$pkg-*) 1.7 - if [ -d "$dir/description.txt" ]; then 1.8 + if [ -s "$dir/description.txt" ]; then 1.9 echo '<pre>' 1.10 cat $dir/description.txt 1.11 echo '</pre>'