fixed check update available bug
This commit is contained in:
parent
b6297531d4
commit
0e76bdba94
@ -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
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user