diff --git a/Rule34/gallery-dl.sh b/Rule34/gallery-dl.sh index 7b86974..f198493 100755 --- a/Rule34/gallery-dl.sh +++ b/Rule34/gallery-dl.sh @@ -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