mirror of
https://github.com/MacRimi/ProxMenux.git
synced 2025-10-02 08:06:17 +00:00
Update customizable_post_install.sh
This commit is contained in:
@@ -2469,7 +2469,7 @@ fi
|
|||||||
local category_position=$((total_width - max_cat_width))
|
local category_position=$((total_width - max_cat_width))
|
||||||
|
|
||||||
local menu_items=()
|
local menu_items=()
|
||||||
local i=0
|
local i=1
|
||||||
local previous_category=""
|
local previous_category=""
|
||||||
|
|
||||||
for option in "${sorted_options[@]}"; do
|
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))}..."
|
translated_description="${translated_description:0:$((max_allowed_desc-3))}..."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Set ON for all categories except Optional
|
|
||||||
state="ON"
|
# Set OFF for todas las opciones
|
||||||
if [ "$category" = "Optional" ]; then
|
state="OFF"
|
||||||
state="OFF"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Add a separator before Optional category, but only once
|
# Add a separator before Optional category, but only once
|
||||||
if [ "$category" != "$previous_category" ] && [ "$category" = "Optional" ] && [ "$previous_category" != "" ]; then
|
if [ "$category" != "$previous_category" ] && [ "$category" = "Optional" ] && [ "$previous_category" != "" ]; then
|
||||||
|
Reference in New Issue
Block a user