summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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"