From dcaf1e712768fde590b2240e68d3014bbd428a43 Mon Sep 17 00:00:00 2001 From: BodgeMaster <> Date: Wed, 6 Apr 2022 04:08:37 +0200 Subject: [PATCH] make this actually work as cgi-script --- pyhi.sh | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/pyhi.sh b/pyhi.sh index 14489e5..d442e10 100644 --- a/pyhi.sh +++ b/pyhi.sh @@ -4,10 +4,7 @@ if [ -z "$PYHP" ]; then PYHP=""$(dirname "$0")"/pyhp.py" fi -PYH="$1" -shift - -HYPERTEXT=$("$PYHP" "$PYH" | python3 - "$@") +HYPERTEXT=$("$PYHP" "$PYH" | python3 - "$PATH_TRANSLATED") # check for headers, if present assume the pyh file is going to handle them if head -n1 <<< "$HYPERTEXT" | grep "[A-Za-z][A-Za-z0-9\-]*: "; then @@ -16,4 +13,4 @@ else echo -ne "Content-type: text/html\\n\\n" fi -echo "$HYPERTEXT" \ No newline at end of file +echo "$HYPERTEXT"