fix mistake

This commit is contained in:
2024-06-21 03:05:45 +02:00
parent fd6e2f3537
commit c30c09bb2c

View File

@ -10,10 +10,10 @@ if [ ! -s to_download_r34.txt ]; then
exit 0
else
echo "file not empty"
if [ $(ping -qc 3 rule34.xxx) ]; then
echo "has internet"
else
if [ $(ping -qc 3 rule34.xxx > /dev/null 2>&1) ]; then
echo "no internet"
exit 1
else
echo "has internet"
fi
fi