if in einfacher Version

This commit is contained in:
Robin Kloppe 2023-08-09 19:19:41 +02:00
parent 283c577b87
commit 2be770a3ba

View file

@ -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 <adblocklists.txt