]> git.plutz.net Git - serve0/commitdiff
use debug function for debug output
authorPaul Hänsch <paul@plutz.net>
Mon, 4 Jan 2021 20:14:05 +0000 (21:14 +0100)
committerPaul Hänsch <paul@plutz.net>
Mon, 4 Jan 2021 20:14:05 +0000 (21:14 +0100)
list.sh

diff --git a/list.sh b/list.sh
index 259b9cdf3bfb6dba4b0cf2d583d5979f5477a04c..e7b856c81346cf3d96488de569dd3d36f768ad53 100644 (file)
--- 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}" \