From: Paul Hänsch Date: Tue, 22 Feb 2022 15:24:36 +0000 (+0100) Subject: move "local" statement to wrapping function X-Git-Url: https://git.plutz.net/?a=commitdiff_plain;h=d530d1d96264df5d7684eac1be32c41beec48311;p=serve0 move "local" statement to wrapping function --- diff --git a/list.sh b/list.sh index ccb9139..b57e4e4 100755 --- a/list.sh +++ b/list.sh @@ -6,7 +6,6 @@ list_item() { local meta file link name - eval "$LOCAL_META" if [ "${META_NAME%/}" != "${META_NAME}" ]; then printf '[a .list .dir href="%s?%s" . %s]' \ @@ -157,6 +156,7 @@ list_paginate() { local page i c n end qry page="$(GET p |grep -axE '[0-9]+' || printf 1)"; c=1 end=$((page + LISTSIZE)) + eval "$LOCAL_META" # localize vars from db_meta printf '[div .itemlist ' while :; do