cookutils rev 720
cooker.cgi: allow spaces filename for ?files=
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Apr 16 19:26:45 2015 +0200 (2015-04-16) |
parents | 8f8775f51542 |
children | 851a2b8075dc |
files | web/cooker.cgi |
line diff
1.1 --- a/web/cooker.cgi Mon Apr 13 17:30:08 2015 +0000 1.2 +++ b/web/cooker.cgi Thu Apr 16 19:26:45 2015 +0200 1.3 @@ -300,7 +300,7 @@ 1.4 if [ -d "$dir/fs" ]; then 1.5 echo "<h2>Installed files by: $pkg ($(du -hs $dir/fs | awk '{ print $1 }'))</h2>" 1.6 echo '<pre>' 1.7 - find $dir/fs -not -type d | xargs ls -ld | \ 1.8 + find $dir/fs -not -type d -print0 | xargs -0 ls -ld | \ 1.9 sed "s|\(.*\) /.*\(${dir#*wok}/fs\)\(.*\)|\1 <a href=\"?download=../wok\2\3\">\3</a>|;s|^\([^-].*\)\(<a.*\)\">\(.*\)</a>|\1\3|" 1.10 echo '</pre>' 1.11 else