cookutils rev 602

cooker.cgi: fix download link
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Jul 08 16:46:15 2013 +0000 (2013-07-08)
parents c1bbd0a44da8
children 03c2a456ac4b
files web/cooker.cgi
line diff
     1.1 --- a/web/cooker.cgi	Fri Jul 05 16:31:41 2013 +0200
     1.2 +++ b/web/cooker.cgi	Mon Jul 08 16:46:15 2013 +0000
     1.3 @@ -270,8 +270,8 @@
     1.4  		if [ -d "$dir/fs" ]; then
     1.5  			echo '<pre>'
     1.6  			find $dir/fs -not -type d | xargs ls -ld | \
     1.7 -				sed "s|\(.*\) /.*\(${dir#*wok}/fs\)\(.*\)|\1 <a href=\"?download=../wok\2\3\">\3</a>|;s|^\([^-].*\)\(<a.*\)\">\(.*\)</a>|\1\3|" | \
     1.8 -				syntax_highlighter log
     1.9 +				syntax_highlighter log | \
    1.10 +				sed "s|\(.*\) /.*\(${dir#*wok}/fs\)\(.*\)|\1 <a href=\"?download=../wok\2\3\">\3</a>|;s|^\([^-].*\)\(<a.*\)\">\(.*\)</a>|\1\3|"
    1.11  			echo '</pre>'
    1.12  		else
    1.13  			echo "<pre>No files list for: $pkg</pre>"