cookutils rev 570

cooker.cgi: download files only
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Jan 17 14:47:51 2013 +0100 (2013-01-17)
parents a034bc2353e7
children 0e48fd9656d0
files web/cooker.cgi
line diff
     1.1 --- a/web/cooker.cgi	Thu Jan 17 08:45:36 2013 +0100
     1.2 +++ b/web/cooker.cgi	Thu Jan 17 14:47:51 2013 +0100
     1.3 @@ -267,7 +267,7 @@
     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>|\2|" | \
     1.8 +				sed "s|\(.*\) /.*\(${dir#*wok}/fs\)\(.*\)|\1 <a href=\"?download=../wok\2\3\">\3</a>|;s|^\([^-].*\)\(<a.*\)\">\(.*\)</a>|\1\3|" | \
     1.9  				syntax_highlighter log
    1.10  			echo '</pre>'
    1.11  		else