mirror of
https://github.com/AuxXxilium/arc.git
synced 2024-11-23 22:19:52 +07:00
tree: cleanup
Signed-off-by: AuxXxilium <info@auxxxilium.tech>
This commit is contained in:
parent
ab508a9eb5
commit
cee2d7d263
@ -671,19 +671,6 @@ function arcSummary() {
|
|||||||
# Building Loader
|
# Building Loader
|
||||||
function make() {
|
function make() {
|
||||||
STEP="build"
|
STEP="build"
|
||||||
ARCCONF="$(readConfigKey "${MODEL}.serial" "${S_FILE}" 2>/dev/null)"
|
|
||||||
SN="$(readConfigKey "sn" "${USER_CONFIG_FILE}")"
|
|
||||||
BOOTMODE="$(readConfigKey "arc.mode" "${USER_CONFIG_FILE}")"
|
|
||||||
if [ "${BOOTMODE}" != "automated" ] && [ "${ARCOFFLINE}" != "true" ] && [[ "${ARCPATCH}" != "true" || -z "${ARCCONF}" ]]; then
|
|
||||||
if ! curl -skL "https://arc.auxxxilium.tech/check.yml" -o "${TMP_PATH}/check.yml" 2>/dev/null; then
|
|
||||||
SN=$(generateSerial "${MODEL}" "false")
|
|
||||||
else
|
|
||||||
if grep -q "${SN}" "${TMP_PATH}/check.yml"; then
|
|
||||||
SN=$(generateSerial "${MODEL}" "false")
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
writeConfigKey "sn" "${SN}" "${USER_CONFIG_FILE}"
|
|
||||||
fi
|
|
||||||
# Read Model Config
|
# Read Model Config
|
||||||
MODEL="$(readConfigKey "model" "${USER_CONFIG_FILE}")"
|
MODEL="$(readConfigKey "model" "${USER_CONFIG_FILE}")"
|
||||||
PLATFORM="$(readConfigKey "platform" "${USER_CONFIG_FILE}")"
|
PLATFORM="$(readConfigKey "platform" "${USER_CONFIG_FILE}")"
|
||||||
|
@ -447,7 +447,7 @@ function dependenciesUpdate() {
|
|||||||
BUILDDONE="$(readConfigKey "arc.builddone" "${USER_CONFIG_FILE}")"
|
BUILDDONE="$(readConfigKey "arc.builddone" "${USER_CONFIG_FILE}")"
|
||||||
FAILED="false"
|
FAILED="false"
|
||||||
dialog --backtitle "$(backtitle)" --title "Update Dependencies" --aspect 18 \
|
dialog --backtitle "$(backtitle)" --title "Update Dependencies" --aspect 18 \
|
||||||
--infobox "Updating Dependencies..." 0 0
|
--infobox "Updating Dependencies..." 3 40
|
||||||
sleep 2
|
sleep 2
|
||||||
updateAddons
|
updateAddons
|
||||||
[ $? -ne 0 ] && FAILED="true"
|
[ $? -ne 0 ] && FAILED="true"
|
||||||
@ -463,11 +463,11 @@ function dependenciesUpdate() {
|
|||||||
[ $? -ne 0 ] && FAILED="true"
|
[ $? -ne 0 ] && FAILED="true"
|
||||||
if [ "${FAILED}" == "true" ]; then
|
if [ "${FAILED}" == "true" ]; then
|
||||||
dialog --backtitle "$(backtitle)" --title "Update Dependencies" --aspect 18 \
|
dialog --backtitle "$(backtitle)" --title "Update Dependencies" --aspect 18 \
|
||||||
--infobox "Update failed!\nTry again later." 0 0
|
--infobox "Update failed! Try again later." 3 40
|
||||||
sleep 3
|
sleep 3
|
||||||
elif [ "${FAILED}" == "false" ]; then
|
elif [ "${FAILED}" == "false" ]; then
|
||||||
dialog --backtitle "$(backtitle)" --title "Update Dependencies" --aspect 18 \
|
dialog --backtitle "$(backtitle)" --title "Update Dependencies" --aspect 18 \
|
||||||
--infobox "Update successful!" 0 0
|
--infobox "Update successful!" 3 40
|
||||||
writeConfigKey "arc.builddone" "false" "${USER_CONFIG_FILE}"
|
writeConfigKey "arc.builddone" "false" "${USER_CONFIG_FILE}"
|
||||||
BUILDDONE="$(readConfigKey "arc.builddone" "${USER_CONFIG_FILE}")"
|
BUILDDONE="$(readConfigKey "arc.builddone" "${USER_CONFIG_FILE}")"
|
||||||
sleep 3
|
sleep 3
|
||||||
|
Loading…
Reference in New Issue
Block a user