summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2022-12-06 19:18:45 +0100
committertv <tv@krebsco.de>2022-12-06 20:11:03 +0100
commitbc8e72f292652cf8381870c892c81b92736086e7 (patch)
treefe4acce586a9cbf89cab1f3b1175d2e8e1388b59
parenta865757360c3f1b8e0a709ee4ae1ecf65efae65c (diff)
add HTGEN_SCRIPT_FILEHEAD1.4.0master
-rwxr-xr-xhtgen4
1 files changed, 3 insertions, 1 deletions
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