arc: fix logic

Signed-off-by: AuxXxilium <info@auxxxilium.tech>
This commit is contained in:
AuxXxilium 2024-11-16 23:15:41 +01:00
parent 8c22d11c49
commit e218db8511
2 changed files with 4 additions and 2 deletions

View File

@ -91,6 +91,8 @@ function arcModel() {
STEP="model" STEP="model"
if [ ! -f "${S_FILE}" ] || [ ! -f "${P_FILE}" ]; then if [ ! -f "${S_FILE}" ] || [ ! -f "${P_FILE}" ]; then
updateConfigs updateConfigs
else
checkHardwareID
fi fi
dialog --backtitle "$(backtitlep)" --title "Model" \ dialog --backtitle "$(backtitlep)" --title "Model" \
--infobox "Reading Models..." 3 25 --infobox "Reading Models..." 3 25
@ -955,7 +957,7 @@ else
b) addonMenu; NEXT="b" ;; b) addonMenu; NEXT="b" ;;
d) modulesMenu; NEXT="d" ;; d) modulesMenu; NEXT="d" ;;
e) ONLYVERSION="true" && arcVersion; NEXT="e" ;; e) ONLYVERSION="true" && arcVersion; NEXT="e" ;;
p) ONLYPATCH="true" && arcPatch; NEXT="p" ;; p) ONLYPATCH="true" && checkHardwareID && arcPatch; NEXT="p" ;;
S) storageMenu; NEXT="S" ;; S) storageMenu; NEXT="S" ;;
o) dtsMenu; NEXT="o" ;; o) dtsMenu; NEXT="o" ;;
g) governorMenu; NEXT="g" ;; g) governorMenu; NEXT="g" ;;

View File

@ -265,7 +265,7 @@ function updateModules() {
sleep 3 sleep 3
idx=$((${idx} + 1)) idx=$((${idx} + 1))
done done
if [ -n "${TAG}" ] && [[ "${MODULESVERSION}" != "${TAG}" || ! -f "${MODULES_PATH}/${PLATFORM}-${KVERP}.tgz" ]]; then if [ -n "${TAG}" ] && [ "${MODULESVERSION}" != "${TAG}" ]; then
rm -rf "${MODULES_PATH}" rm -rf "${MODULES_PATH}"
mkdir -p "${MODULES_PATH}" mkdir -p "${MODULES_PATH}"
export URL="https://github.com/AuxXxilium/arc-modules/releases/download/${TAG}/modules-${TAG}.zip" export URL="https://github.com/AuxXxilium/arc-modules/releases/download/${TAG}/modules-${TAG}.zip"