summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2020-09-15 21:41:26 +0200
committertv <tv@krebsco.de>2020-09-15 21:41:26 +0200
commit780808d284b690866b876e1ed2da3bd50369457e (patch)
tree146005a2bf57bc8df71fa84ec8a60ff4675e5950
parent5dfc1e08605b5b934d83b87d39af896c0fab08db (diff)
echo only when verbosev1.2.61.2.6
-rwxr-xr-xhtgen8
1 files changed, 6 insertions, 2 deletions
diff --git a/htgen b/htgen
index 2291a94..80f5f00 100755
--- a/htgen
+++ b/htgen
@@ -26,7 +26,9 @@ case $action in
HTGEN_SCRIPT=${HTGEN_SCRIPT-:}
HTGEN_VERBOSE=$verbose; export HTGEN_VERBOSE
TCPSERVER_OPTS='-c 423 -t 2 -D'
- echo "#### $Server $HTGEN_HOST:$HTGEN_PORT" >&2
+ if test "$HTGEN_VERBOSE" = true; then
+ echo "#### $Server $HTGEN_HOST:$HTGEN_PORT" >&2
+ fi
exec tcpserver $TCPSERVER_OPTS "$HTGEN_HOST" "$HTGEN_PORT" "$0"
;;
*)
@@ -106,7 +108,9 @@ while read -r line; do
done
unset k v
-echo >&2
+if test "$HTGEN_VERBOSE" = true; then
+ echo >&2
+fi
## }}}
eval "$HTGEN_SCRIPT"