]> git.plutz.net Git - webpoll/commitdiff
include guard for widgets
authorPaul Hänsch <paul@plutz.net>
Wed, 27 Jul 2022 11:56:45 +0000 (13:56 +0200)
committerPaul Hänsch <paul@plutz.net>
Wed, 27 Jul 2022 11:56:45 +0000 (13:56 +0200)
widgets.sh

index 835e6463113dae536546a0124d96855f56763e75..8410a0cb92eaa61ab3a469fe6fd3859adc8f1d6f 100755 (executable)
@@ -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"; }