mirror of
https://github.com/AuxXxilium/arc.git
synced 2024-12-04 02:05:40 +07:00
arc: rewrite online check
Signed-off-by: AuxXxilium <info@auxxxilium.tech>
This commit is contained in:
parent
73386cd78f
commit
2bee3621b9
@ -34,7 +34,7 @@ BUS=$(getBus "${LOADER_DISK}")
|
|||||||
# Offline Mode check
|
# Offline Mode check
|
||||||
OFFLINE="$(readConfigKey "arc.offline" "${USER_CONFIG_FILE}")"
|
OFFLINE="$(readConfigKey "arc.offline" "${USER_CONFIG_FILE}")"
|
||||||
if [ "${OFFLINE}" = "false" ]; then
|
if [ "${OFFLINE}" = "false" ]; then
|
||||||
if ping -c 1 "github.com" &> /dev/null; then
|
if ping -c 1 "github.com" 2> /dev/null; then
|
||||||
writeConfigKey "arc.offline" "false" "${USER_CONFIG_FILE}"
|
writeConfigKey "arc.offline" "false" "${USER_CONFIG_FILE}"
|
||||||
else
|
else
|
||||||
writeConfigKey "arc.offline" "true" "${USER_CONFIG_FILE}"
|
writeConfigKey "arc.offline" "true" "${USER_CONFIG_FILE}"
|
||||||
|
Loading…
Reference in New Issue
Block a user