mirror of
https://github.com/RetroDECK/RetroDECK.git
synced 2024-11-22 05:55:38 +00:00
Fix typo & remove progress dlg from network check
This commit is contained in:
parent
68e9e77380
commit
c55e9e5c63
|
@ -4,25 +4,17 @@ check_network_connectivity() {
|
|||
# This function will do a basic check for network availability and return "true" if it is working.
|
||||
# USAGE: if [[ $(check_network_connectivity) == "true" ]]; then
|
||||
|
||||
(
|
||||
local response=
|
||||
|
||||
if [[ ! -z $(wget --spider -t 1 $remote_network_target_1 | grep "HTTP response 200") ]]; then
|
||||
local network_connnected="true"
|
||||
local network_connected="true"
|
||||
elif [[ ! -z $(wget --spider -t 1 $remote_network_target_2 | grep "HTTP response 200") ]]; then
|
||||
local network_connnected="true"
|
||||
local network_connected="true"
|
||||
elif [[ ! -z $(wget --spider -t 1 $remote_network_target_3 | grep "HTTP response 200") ]]; then
|
||||
local network_connnected="true"
|
||||
local network_connected="true"
|
||||
else
|
||||
local network_connnected="false"
|
||||
local network_connected="false"
|
||||
fi
|
||||
) |
|
||||
zenity --icon-name=net.retrodeck.retrodeck --progress --no-cancel --pulsate --auto-close \
|
||||
--window-icon="/app/share/icons/hicolor/scalable/apps/net.retrodeck.retrodeck.svg" \
|
||||
--title "RetroDECK Network Check" \
|
||||
--text="Verifying network connectivity..."
|
||||
|
||||
echo "$network_connected"
|
||||
echo "$network_connected"
|
||||
}
|
||||
|
||||
check_desktop_mode() {
|
||||
|
|
Loading…
Reference in a new issue