mirror of
https://github.com/RetroDECK/RetroDECK.git
synced 2024-11-25 07:25:38 +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.
|
||||
# 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"
|
||||
else
|
||||
echo "false"
|
||||
|
|
Loading…
Reference in a new issue