if in einfacher Version
This commit is contained in:
parent
283c577b87
commit
2be770a3ba
1 changed files with 1 additions and 4 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue