diff options
-rwxr-xr-x | htgen | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -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" |