]> git.plutz.net Git - cgilite/commitdiff
more reliable include path
authorPaul Hänsch <paul@plutz.net>
Sat, 24 Feb 2024 10:24:38 +0000 (11:24 +0100)
committerPaul Hänsch <paul@plutz.net>
Sat, 24 Feb 2024 10:24:38 +0000 (11:24 +0100)
db23.sh
users.sh

diff --git a/db23.sh b/db23.sh
index a3a25bb052d392dd7b1df7d2751a30fb6fbbf7be..e8a0d64da8bf0b15c7c74398fe7200d68ad16680 100755 (executable)
--- a/db23.sh
+++ b/db23.sh
@@ -17,7 +17,7 @@
 [ -n "$include_db23" ] && return 0
 include_db23="$0"
 
-. "$_EXEC/cgilite/storage.sh"
+. "${_EXEC:-.}/cgilite/storage.sh"
 
 DB2() {
   local call data file key val seq
index 18fde077d6a99ec191d8aa016c34addd19c65fc7..f60f8a645ff7ae4445737bbf92d58dad8ec913c1 100755 (executable)
--- a/users.sh
+++ b/users.sh
@@ -17,8 +17,8 @@
 [ -n "$include_users" ] && return 0
 include_users="$0"
 
-. "${_EXEC}/cgilite/session.sh"
-. "${_EXEC}/cgilite/storage.sh"
+. "${_EXEC:-.}/cgilite/session.sh"
+. "${_EXEC:-.}/cgilite/storage.sh"
 
 SENDMAIL=${SENDMAIL-sendmail}