fixed check update available bug

This commit is contained in:
Justin
2022-10-05 16:19:59 +08:00
committed by GitHub
parent b6297531d4
commit 0e76bdba94

View File

@@ -2,6 +2,18 @@
sleep 120
internet="offline"
wget -q --spider http://google.com
if [ $? -eq 0 ]; then
internet="online"
else
internet="offline"
fi
if [[ $internet = "online" ]]; then
value=$(<csv/system_info.json)
echo "${value}"
@@ -38,6 +50,6 @@ echo "$str" >> csv/system_info.json
sudo chmod 777 csv/system_info.json
fi