From 35ade9f672145b203be1f0a8c0e11ede9d232202 Mon Sep 17 00:00:00 2001 From: AuxXxilium Date: Fri, 28 Jun 2024 19:54:28 +0200 Subject: [PATCH] arc-functions: clean function Signed-off-by: AuxXxilium --- files/initrd/opt/arc/arc-functions.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/files/initrd/opt/arc/arc-functions.sh b/files/initrd/opt/arc/arc-functions.sh index 7a092883..4101fefe 100755 --- a/files/initrd/opt/arc/arc-functions.sh +++ b/files/initrd/opt/arc/arc-functions.sh @@ -51,8 +51,9 @@ function addonSelection() { arrayExistItem "${ADDON}" "${!ADDONS[@]}" && ACT="on" || ACT="off" if [ "${ADDON}" == "amepatch" ] && [ "${OFFLINE}" == "true" ]; then continue + else + echo -e "${ADDON} \"${DESC}\" ${ACT}" >>"${TMP_PATH}/opts" fi - echo -e "${ADDON} \"${DESC}\" ${ACT}" >>"${TMP_PATH}/opts" done < <(availableAddons "${PLATFORM}") dialog --backtitle "$(backtitle)" --title "DSM Addons" --aspect 18 \ --checklist "Select DSM Addons to include.\nPlease read Wiki before choosing anything.\nSelect with SPACE, Confirm with ENTER!" 0 0 0 \