From d530d1d96264df5d7684eac1be32c41beec48311 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Paul=20H=C3=A4nsch?= Date: Tue, 22 Feb 2022 16:24:36 +0100 Subject: [PATCH] move "local" statement to wrapping function --- list.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.2