mirror of
https://github.com/RetroDECK/RetroDECK.git
synced 2025-02-18 04:15:40 +00:00
Update networking check to fix flatpak weirdness
This commit is contained in:
parent
1bba5a7745
commit
46164b8dcd
|
@ -4,9 +4,9 @@ check_network_connectivity() {
|
||||||
# This function will do a basic check for network availability and return "true" if it is working.
|
# This function will do a basic check for network availability and return "true" if it is working.
|
||||||
# USAGE: if [[ $(check_network_connectivity) == "true" ]]; then
|
# USAGE: if [[ $(check_network_connectivity) == "true" ]]; then
|
||||||
|
|
||||||
wget -q --spider "$remote_network_target"
|
local response=$(wget --spider -t 1 $remote_network_target)
|
||||||
|
|
||||||
if [ $? -eq 0 ]; then
|
if [[ ! -z $(echo "$response" | grep "HTTP response 200") ]]; then
|
||||||
echo "true"
|
echo "true"
|
||||||
else
|
else
|
||||||
echo "false"
|
echo "false"
|
||||||
|
|
Loading…
Reference in a new issue