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