From bc8e72f292652cf8381870c892c81b92736086e7 Mon Sep 17 00:00:00 2001 From: tv Date: Tue, 6 Dec 2022 19:18:45 +0100 Subject: add HTGEN_SCRIPT_FILE --- htgen | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/htgen b/htgen index 6cf7fc6..52d32e5 100755 --- a/htgen +++ b/htgen @@ -23,7 +23,8 @@ case $action in serve) HTGEN_HOST=${HTGEN_HOST-0.0.0.0} HTGEN_PORT=${HTGEN_PORT-42380} - HTGEN_SCRIPT=${HTGEN_SCRIPT-:} + HTGEN_SCRIPT=${HTGEN_SCRIPT-:}; export HTGEN_SCRIPT + HTGEN_SCRIPT_FILE=${HTGEN_SCRIPT_FILE-/dev/null}; export HTGEN_SCRIPT_FILE HTGEN_VERBOSE=$verbose; export HTGEN_VERBOSE TCPSERVER_OPTS='-c 423 -t 2 -D' if test "$HTGEN_VERBOSE" = true; then @@ -117,5 +118,6 @@ fi ## }}} eval "$HTGEN_SCRIPT" +. "$HTGEN_SCRIPT_FILE" reply_404 -- cgit v1.2.3