cookutils diff web/cooker.cgi @ 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 4b4fe42326c7
children 4b1f207c4058 82da6052a792
line diff
     1.1 --- a/web/cooker.cgi	Tue Jun 12 14:40:02 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>'