From: Paul Hänsch Date: Wed, 25 Jul 2018 00:16:36 +0000 (+0200) Subject: ass option to suppress error output X-Git-Url: https://git.plutz.net/?a=commitdiff_plain;h=0bca0bee961be0c55bddba41b28501d014aef4a6;p=serve0 ass option to suppress error output --- diff --git a/index.cgi b/index.cgi index a620cf9..fa342bb 100755 --- a/index.cgi +++ b/index.cgi @@ -3,6 +3,7 @@ for n in "$@"; do case ${n%%=*} in data) _DATA="${n#data=}";; exec) _exec="${n#exec=}";; + noerr) exec 2>&-;; esac; done [ -z "${_EXEC%/}" ] && _EXEC="$(realpath "${0%/*}")" || _EXEC="${_EXEC%/}"