From: Paul Hänsch Date: Wed, 27 Jul 2022 11:56:45 +0000 (+0200) Subject: include guard for widgets X-Git-Url: https://git.plutz.net/?a=commitdiff_plain;h=6450e6e1debb25bfda232e3d001a4da51e1cb72c;p=webpoll include guard for widgets --- diff --git a/widgets.sh b/widgets.sh index 835e646..8410a0c 100755 --- a/widgets.sh +++ b/widgets.sh @@ -1,5 +1,8 @@ #!/bin/sh +[ -n "$include_widgets" ] && return 0 +include_widgets="$0" + export MD_HTML="false" if [ "$(which awk)" ]; then markdown() { awk -f "$_EXEC/cgilite/markdown.awk"; }