From f451b07764160be18d67e8596bdb577805a03055 Mon Sep 17 00:00:00 2001 From: Michael Grote Date: Tue, 7 May 2024 01:50:56 +0200 Subject: [PATCH] ff --- filter.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/filter.sh b/filter.sh index 8154822..3dfea1f 100755 --- a/filter.sh +++ b/filter.sh @@ -157,7 +157,7 @@ function get_unread_entries { function filter_entries { echo "[INFO] Filtering entries..." # fuer jede Zeile in $MF_FILTERLIST - while read -r line; do + echo (MF_FILTERLIST | while read -r line; do if [[ $MF_DEBUG -eq 1 ]]; then echo "[DEBUG] set search values" fi @@ -185,7 +185,7 @@ function filter_entries { marked_entries+=" $(echo "$unread_entries" | jq --arg url "$url" --arg suchbegriff "$suchbegriff" '.entries[] | select(.feed.site_url | ascii_downcase | contains($url)) | select(.content | ascii_downcase | contains($suchbegriff)) | .id' )" fi fi - done < <(MF_FILTERLIST) + done } function mark_as_read { # https://stackoverflow.com/questions/3869072/test-for-non-zero-length-string-in-bash-n-var-or-var