From 2afc48aa56da563dd73ffb4bfa98fcd5776ef63f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Paul=20H=C3=A4nsch?= Date: Thu, 19 May 2022 16:39:35 +0200 Subject: [PATCH] include guards --- acl.sh | 3 +++ session_lock.sh | 3 +++ tools.sh | 3 +++ 3 files changed, 9 insertions(+) diff --git a/acl.sh b/acl.sh index d232ea0..0ba6663 100755 --- 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}" diff --git a/session_lock.sh b/session_lock.sh index f55c9cd..21c9808 100755 --- a/session_lock.sh +++ b/session_lock.sh @@ -1,5 +1,8 @@ #!/bin/sh +[ "$include_sessionlock" ] && return 0 +include_sessionlock="$0" + . "$_EXEC/cgilite/storage.sh" . "$_EXEC/cgilite/session.sh" diff --git a/tools.sh b/tools.sh index 2a851ab..1b7e677 100755 --- 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 -- 2.39.2