add try again

This commit is contained in:
2024-06-21 03:07:15 +02:00
parent c30c09bb2c
commit 02f9589fc6

View File

@ -2,18 +2,28 @@
#cd /srv/dev-disk-by-uuid-b7a4d72a-4b42-4599-9712-c044e8fe3213/NSFB/Hentai || exit 1
#cp downloaded_r34.txt to_download_r34.txt || exit 1
#try once
#gallery-dl --config ./config.json --input-file-delete to_download_r34.txt
if [ ! -s to_download_r34.txt ]; then
#success! just exit
echo "file empty"
exit 0
else
echo "file not empty"
if [ $(ping -qc 3 rule34.xxx > /dev/null 2>&1) ]; then
fi
echo "file not empty"
if [ $(ping -qc 3 rule34.xxx > /dev/null 2>&1) ]; then
echo "no internet"
exit 1
else
else
echo "has internet"
fi
fi
#try again
#gallery-dl --config ./config.json --input-file-delete to_download_r34.txt
if [ ! -s to_download_r34.txt ]; then
echo "file empty"
exit 0
fi