functions: update

This commit is contained in:
AuxXxilium 2024-08-15 12:56:18 +02:00 committed by GitHub
parent 68a996c776
commit 519026cf2d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -591,13 +591,15 @@ function offlineCheck() {
OFFLINE="false"
elif [ -z "${ARCNIC}" ] && [ "${AUTOMATED}" == "false" ]; then
dialog --backtitle "$(backtitle)" --title "Online Check" \
--msgbox "Could not connect to Github.\nSwitch to Offline Mode!" 0 0
--infobox "Could not connect to Github.\nSwitch to Offline Mode!" 0 0
sleep 5
cp -f "${PART3_PATH}/configs/offline.json" "${ARC_PATH}/include/offline.json"
ARCNIC="offline"
OFFLINE="true"
elif [ -z "${ARCNIC}" ] && [ "${AUTOMATED}" == "true" ]; then
dialog --backtitle "$(backtitle)" --title "Online Check" \
--msgbox "Could not connect to Github.\nSwitch to Offline Mode!\nDisable Automated Mode!" 0 0
--infobox "Could not connect to Github.\nSwitch to Offline Mode!\nDisable Automated Mode!" 0 0
sleep 5
writeConfigKey "automated" "false" "${USER_CONFIG_FILE}"
[ -f "${PART3_PATH}/automated" ] && rm -f "${PART3_PATH}/automated" >/dev/null
ARCNIC="offline"