]> Pileus Git - vpaste/commitdiff
Fix broken pipe message
authorAndy Spencer <andy753421@gmail.com>
Mon, 7 Jan 2013 05:28:36 +0000 (05:28 +0000)
committerAndy Spencer <andy753421@gmail.com>
Mon, 7 Jan 2013 05:28:36 +0000 (05:28 +0000)
index.cgi

index 4b587dc4541966806409feb004e5eecd2da9f297..aacc8751cd754ef7f0562586a87c2f5e33117437 100755 (executable)
--- a/index.cgi
+++ b/index.cgi
@@ -183,7 +183,7 @@ function do_help {
                sed -n '/^\(syntax\|manual\|synload\|2html\|colortest\|hitest\).vim$/d; s/.vim$//p' |
                sort | uniq
        )
-       uploads=$(ls -t db | head -n 5)
+       uploads=$(ls -t db 2>/dev/null | head -n 5)
        filetype=$(get_param '^(ft|filet(y(pe?)?)?)$')
        vpaste='<a href="vpaste?ft=sh">vpaste</a>'
        repo='https://lug.rose-hulman.edu/svn/misc/trunk/htdocs/vpaste/'