From: Andy Spencer Date: Sat, 10 Oct 2009 13:16:36 +0000 (+0000) Subject: rainbow X-Git-Url: http://pileus.org/git/?p=vpaste;a=commitdiff_plain;h=20cbe7aa672f68ff6832a2f63b43cc42e1d6771c rainbow --- diff --git a/index.cgi b/index.cgi index aed8c3c..3ed5803 100755 --- a/index.cgi +++ b/index.cgi @@ -106,7 +106,7 @@ filetypes=$( sed -n '/^\(syntax\|manual\|synload\|2html\|colortest\|hitest\).vim$/d; s/.vim$//p' | sort | uniq ) -uploads=$(ls -t db | head -n 5 | sed "s!^!$url!") +uploads=$(ls -t db | head -n 5) header text/html cat - < @@ -190,8 +191,12 @@ cat - <

LATEST UPLOADS

-
    $(for uri in ${uploads[@]}; do - echo "
  • $uri
  • " +
      $(for upload in ${uploads[@]}; do + echo -n "
    • " + echo -n "$upload " + echo -n "text " + echo -n "rainbow" + echo "
    • " done)