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