]> git.plutz.net Git - shellwiki/commitdiff
include guards
authorPaul Hänsch <paul@plutz.net>
Thu, 19 May 2022 14:39:35 +0000 (16:39 +0200)
committerPaul Hänsch <paul@plutz.net>
Thu, 19 May 2022 14:39:35 +0000 (16:39 +0200)
acl.sh
session_lock.sh
tools.sh

diff --git a/acl.sh b/acl.sh
index d232ea0138d4f5614ef4c61fc7d97548c0e85d4b..0ba66631d40c6709e1b59ee2e41f6dfde4167cc0 100755 (executable)
--- a/acl.sh
+++ b/acl.sh
@@ -1,5 +1,8 @@
 #!/bin/sh
 
+[ "$include_acl" ] && return 0
+include_acl="$0"
+
 # ACL_OVERRIDE="${ACL_OVERRIDE:-Admin:read,write}"
 ACL_DEFAULT="${ACL_DEFAULT:-Known:read,write${BR}All:read}"
 
index f55c9cd02fb54b83f180f3dcb6fd5907cba8c7ac..21c9808cf151ffa6303e598b720476cf10dc4188 100755 (executable)
@@ -1,5 +1,8 @@
 #!/bin/sh
 
+[ "$include_sessionlock" ] && return 0
+include_sessionlock="$0"
+
 . "$_EXEC/cgilite/storage.sh"
 . "$_EXEC/cgilite/session.sh"
 
index 2a851ab0726648818a1335872656a64bdadc6a4d..1b7e6773dac5cfe6c6bdf961e8df3ef74d980d2c 100755 (executable)
--- a/tools.sh
+++ b/tools.sh
@@ -1,5 +1,8 @@
 #!/bin/sh
 
+[ "$include_tools" ] && return 0
+include_tools="$0"
+
 if [ "$(which awk)" ]; then
   md() { awk -f "$_EXEC/md_macros.awk" -f "$_EXEC/cgilite/markdown.awk"; }
 elif [ "$(which busybox)" ]; then