From: Paul Hänsch Date: Fri, 7 Nov 2025 00:13:13 +0000 (+0100) Subject: Prefer absolute path when using PWD as _DATA directory (i.e. "$PWD" instead of ".") X-Git-Url: http://git.plutz.net/?a=commitdiff_plain;h=6e9a98e1f25cbd2d5f5c85e4a9d92ac6fe39f7ed;p=cgilite Prefer absolute path when using PWD as _DATA directory (i.e. "$PWD" instead of ".") --- 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