From 2be770a3baaf0aff3c617259201bf0be67da0700 Mon Sep 17 00:00:00 2001 From: Robin Date: Wed, 9 Aug 2023 19:19:41 +0200 Subject: [PATCH] if in einfacher Version --- create-adblock.sh | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/create-adblock.sh b/create-adblock.sh index b887320..2f8e33f 100755 --- a/create-adblock.sh +++ b/create-adblock.sh @@ -9,10 +9,7 @@ date=$(date '+%a, %d %b %Y %H:%M:%S %z') while read p; do echo "#!MARKER- Begin of $p" >> pre-adblock.txt - wget -qO - $p >> pre-adblock.txt - if [ $? -ne 0 ]; then - echo "$date - Download failed: $p" >> errors.log - fi + wget -qO - $p >> pre-adblock.txt || echo "$date - Download failed: $p" >> errors.log sleep 2 done