]> git.plutz.net Git - serve0/commitdiff
ass option to suppress error output
authorPaul Hänsch <paul@plutz.net>
Wed, 25 Jul 2018 00:16:36 +0000 (02:16 +0200)
committerPaul Hänsch <paul@plutz.net>
Wed, 25 Jul 2018 00:16:36 +0000 (02:16 +0200)
index.cgi

index a620cf9a8525b2ed182dafd7dea890965602320c..fa342bb3908d46b9e770c938bf6729e07e6fffc3 100755 (executable)
--- 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%/}"