From 6e9a98e1f25cbd2d5f5c85e4a9d92ac6fe39f7ed Mon Sep 17 00:00:00 2001 From: =?utf8?q?Paul=20H=C3=A4nsch?= Date: Fri, 7 Nov 2025 01:13:13 +0100 Subject: [PATCH] Prefer absolute path when using PWD as _DATA directory (i.e. "$PWD" instead of ".") --- cgilite.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cgilite.sh b/cgilite.sh index b2467c3..fc7953b 100755 --- a/cgilite.sh +++ b/cgilite.sh @@ -3,7 +3,7 @@ # This is CGIlite. # A collection of posix shell functions for writing CGI scripts. -# Copyright 2017 - 2023 Paul Hänsch +# Copyright 2017 - 2023, 2025 Paul Hänsch # # Permission to use, copy, modify, and/or distribute this software for any # purpose with or without fee is hereby granted, provided that the above @@ -44,7 +44,7 @@ esac; done unset cgilite_arg _EXEC="${_EXEC:-${0%/*}}" -_DATA="${_DATA:-.}" +_DATA="${_DATA:-${PWD:-.}}" _EXEC="${_EXEC%/}" _DATA="${_DATA%/}" _BASE="${_BASE%/}" export _EXEC _DATA _BASE -- 2.39.5