From bd9521dafa59ac26c2d7d6fcba895445b86b0151 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Paul=20H=C3=A4nsch?= Date: Mon, 4 Jan 2021 21:14:05 +0100 Subject: [PATCH] use debug function for debug output --- list.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/list.sh b/list.sh index 259b9cd..e7b856c 100644 --- a/list.sh +++ b/list.sh @@ -40,7 +40,7 @@ list_item() { :X s;,-?([^,]+)(,|$); [span .tag\n \1]\2;; tX;' )" "$name" "$link" "$link" else - printf 'Canning record for nonexist file: %s\n' "$name" >&2 + debug "Canning record for nonexist file: $name" meta_purge "$_DATA/$ITEM/$name" fi } @@ -71,7 +71,7 @@ list_fullname(){ list_filter(){ if [ "$FILTER" ]; then - printf "FEX: %s\n" "$list_fex" >&2 + debug "FEX:" "$list_fex" sed -nE "$list_fex" elif [ "${SEARCH#!}" != "${SEARCH}" ]; then grep -aviEe "$(STRING "${SEARCH}" \ -- 2.39.2