From: Paul Hänsch Date: Fri, 7 Feb 2020 05:05:33 +0000 (+0100) Subject: avoid some error messages X-Git-Url: https://git.plutz.net/?a=commitdiff_plain;h=b58e47ac492d02e7737a7dad8b6fe16e0e7ce7ca;p=flarejs avoid some error messages --- diff --git a/index.cgi b/index.cgi index da8c8a8..a86bb26 100755 --- a/index.cgi +++ b/index.cgi @@ -15,7 +15,8 @@ if [ "$_PATH" = / ]; then $( for base in mods/fantasycore mods/empyrean_campaign; do - find $base/images/avatar $base/images/enemies -name '*.png' |while read -r file; do + find $base/images/avatar $base/images/enemies -name '*.png' 2>&-\ + | while read -r file; do file="${file#"${base}/"}" printf '' "$file" done @@ -24,6 +25,8 @@ if [ "$_PATH" = / ]; then EOF +elif [ "$_PATH" = /favicon.ico ]; then + printf 'Status: 404 Not Found\r\nContent-Length: 0\r\n\r\n' else for base in . \ ./mods/empyrean_campaign \