From 2a324c35c47142aa02883aafabbf0f8df1ee2650 Mon Sep 17 00:00:00 2001 From: Michael Grote Date: Fri, 26 Aug 2022 21:34:57 +0200 Subject: [PATCH] DEBUG] Anzahl Filter: only output the Lines and not the Filename --- filter.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/filter.sh b/filter.sh index 7ace786..f17cddf 100755 --- a/filter.sh +++ b/filter.sh @@ -146,7 +146,7 @@ function debug_output { echo [DEBUG] Sleep-Intervall: "$MF_SLEEP" echo [DEBUG] Auth-Token: "$MF_AUTH_TOKEN" echo [DEBUG] MF-Url: "$MF_API_URL" - echo [DEBUG] Anzahl Filter: "$(wc -l "$MF_FILTERLIST_FILE")" + echo [DEBUG] Anzahl Filter: "$(wc -l < "$MF_FILTERLIST_FILE")" echo ----------------------------------------------------- fi } @@ -234,10 +234,10 @@ case "$1" in check_dependencies # fuehre script durchgaengig aus while true; do - check_ping_connectivity - check_api_connectivity check_vars debug_output + check_ping_connectivity + check_api_connectivity get_unread_entries filter_entries mark_as_read