From 21a02b5b875e35f6a7c8e62cceb2207979c969f1 Mon Sep 17 00:00:00 2001 From: MacRimi Date: Wed, 26 Mar 2025 17:35:25 +0100 Subject: [PATCH] Update customizable_post_install.sh --- scripts/customizable_post_install.sh | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/scripts/customizable_post_install.sh b/scripts/customizable_post_install.sh index eee1414..2be2056 100644 --- a/scripts/customizable_post_install.sh +++ b/scripts/customizable_post_install.sh @@ -2469,7 +2469,7 @@ fi local category_position=$((total_width - max_cat_width)) local menu_items=() -local i=0 +local i=1 local previous_category="" for option in "${sorted_options[@]}"; do @@ -2483,11 +2483,10 @@ for option in "${sorted_options[@]}"; do translated_description="${translated_description:0:$((max_allowed_desc-3))}..." fi - # Set ON for all categories except Optional - state="ON" - if [ "$category" = "Optional" ]; then - state="OFF" - fi + + # Set OFF for todas las opciones + state="OFF" + # Add a separator before Optional category, but only once if [ "$category" != "$previous_category" ] && [ "$category" = "Optional" ] && [ "$previous_category" != "" ]; then