From: Paul Hänsch Date: Fri, 18 Mar 2022 11:52:56 +0000 (+0100) Subject: macro for listing attachments X-Git-Url: https://git.plutz.net/?a=commitdiff_plain;h=df5a47a0b129485391d78ca5622b89702fdf57f3;p=shellwiki macro for listing attachments --- diff --git a/macros/attachments b/macros/attachments new file mode 100755 index 0000000..7acc806 --- /dev/null +++ b/macros/attachments @@ -0,0 +1,40 @@ +#!/bin/sh + +. "$_EXEC/cgilite/cgilite.sh" + +page="$1" + +if [ "${page#/}" = "$page" ]; then + page="$(PATH "${PATH_INFO}/$page")" +fi + +printf %s\\n ''