From ebb5009383b7bafe660c22aa5b03c74d04778cc2 Mon Sep 17 00:00:00 2001 From: Aufschlauer Date: Tue, 7 Dec 2021 12:01:00 +0100 Subject: [PATCH] - Enable possibility to user control $CGIBASHOPTS_DIR --- cgibashopts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cgibashopts b/cgibashopts index e55d61a..0fe1473 100755 --- a/cgibashopts +++ b/cgibashopts @@ -10,7 +10,9 @@ export FORMS= export FORMFILES= export FORMQUERY= if [ x"$1" != x-n ]; then - export CGIBASHOPTS_DIR=/tmp/cgibashopts-files.$$ + if [ -z $CGIBASHOPTS_DIR ]; then + export CGIBASHOPTS_DIR=/tmp/cgibashopts-files.$$ + fi CGIBASHOPTS_TMP="$CGIBASHOPTS_DIR.tmp" cgibashopts_clean() { [ -n "$CGIBASHOPTS_DIR" ] && [ -d "$CGIBASHOPTS_DIR" ] && rm -rf "$CGIBASHOPTS_DIR"