From: Paul Hänsch Date: Mon, 4 Jan 2021 20:14:05 +0000 (+0100) Subject: use debug function for debug output X-Git-Url: http://git.plutz.net/?p=serve0;a=commitdiff_plain;h=bd9521dafa59ac26c2d7d6fcba895445b86b0151 use debug function for debug output --- 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}" \