]> git.plutz.net Git - cgilite/commitdiff
Prefer absolute path when using PWD as _DATA directory (i.e. "$PWD" instead of ".") master
authorPaul Hänsch <paul@plutz.net>
Fri, 7 Nov 2025 00:13:13 +0000 (01:13 +0100)
committerPaul Hänsch <paul@plutz.net>
Fri, 7 Nov 2025 00:13:13 +0000 (01:13 +0100)
cgilite.sh

index b2467c335ed55a298651e485ff84143b7dfb23ea..fc7953b93d597242f3c5c86c4608a06afbcf526e 100755 (executable)
@@ -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