added sh script to get the epubs
parent
1e0c283911
commit
50933eb419
@ -0,0 +1,16 @@
|
|||||||
|
#!/bin/ash
|
||||||
|
|
||||||
|
if test -f "/mnt/onboard/tldr/all.txt"; then
|
||||||
|
echo "all.txt exists., remove it";
|
||||||
|
rm /mnt/onboard/tldr/all.txt
|
||||||
|
fi
|
||||||
|
|
||||||
|
wget -nc "https://hub.xpub.nl/chopchop/tl-dr/log-books/all.txt" -O /mnt/onboard/tldr/all.txt
|
||||||
|
|
||||||
|
while read line; do
|
||||||
|
if test -f "/mnt/onboard/tldr/$line"; then
|
||||||
|
echo "$line exists."
|
||||||
|
else
|
||||||
|
wget "https://hub.xpub.nl/chopchop/tl-dr/log-books/${line}" -O "/mnt/onboard/tldr/${line}"
|
||||||
|
fi
|
||||||
|
done < /mnt/onboard/tldr/all.txt
|
Loading…
Reference in New Issue