mirror of
https://github.com/AuxXxilium/arc.git
synced 2024-11-24 00:39:53 +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="$(readConfigKey "arc.offline" "${USER_CONFIG_FILE}")"
|
||||
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}"
|
||||
else
|
||||
writeConfigKey "arc.offline" "true" "${USER_CONFIG_FILE}"
|
||||
|
Loading…
Reference in New Issue
Block a user