1
0
mirror of https://github.com/km4ack/patmenu2.git synced 2025-05-16 23:00:11 -07:00
This commit is contained in:
KM4ACK 2020-08-15 13:19:47 -05:00
parent d8c78c091f
commit 692bc92d52

View File

@ -48,7 +48,7 @@ echo "Please wait while we check your internet connection"
echo "This may take up to a minute" echo "This may take up to a minute"
#yad --center --timeout=3 --timeout-indicator=top --no-buttons \ #yad --center --timeout=3 --timeout-indicator=top --no-buttons \
#--text="Please wait while we check your connection \rThis can take up to 30 seconds" & #--text="Please wait while we check your connection \rThis can take up to 30 seconds" &
wget -q --tries=5 --timeout=10 --spider http://google.com | yad --center --progress --pulsate --timeout-indicator=top --auto-close --no-buttons --text="Checking internet connection" wget -q --tries=5 --timeout=10 --spider http://google.com #| yad --center --progress --pulsate --timeout-indicator=top --auto-close --no-buttons --text="Checking internet connection"
if [[ $? -eq 0 ]]; then if [[ $? -eq 0 ]]; then
echo echo
#yad --center --timeout=2 --timeout-indicator=top --no-buttons --text="Connection Detected" & #yad --center --timeout=2 --timeout-indicator=top --no-buttons --text="Connection Detected" &
@ -57,7 +57,7 @@ if [[ $? -eq 0 ]]; then
echo "This may take several minutes" echo "This may take several minutes"
echo "Depending on your internet speed" echo "Depending on your internet speed"
else else
yad --center --timeout=2 --timeout-indicator=top --no-buttons --text="You are not connected to the internet" & yad --center --timeout=3 --timeout-indicator=top --no-buttons --text="You are not connected to the internet"
exit exit
fi fi
#remove old files before downloading new ones #remove old files before downloading new ones