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