cookutils rev 582 slitaz-tank

cooker.cgi: download files only
author Christopher Rogers <slaxemulator@gmail.com>
date Fri Jan 18 16:23:56 2013 +0000 (2013-01-18)
parents ddf33a57e7dc
children 473a1edbcab0
files web/cooker.cgi
line diff
     1.1 --- a/web/cooker.cgi	Sat Jan 05 11:42:43 2013 +0000
     1.2 +++ b/web/cooker.cgi	Fri Jan 18 16:23:56 2013 +0000
     1.3 @@ -285,7 +285,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