Update-FlatpakSelector

This commit is contained in:
Tyleo Dv. Delaware 2025-05-29 04:04:02 +02:00
parent 93f8435b2f
commit ee8a2e591e

View file

@ -21,7 +21,9 @@ fi
# Build menu options
MENU_OPTIONS=()
for SCRIPT in "${SCRIPTS[@]}"; do
MENU_OPTIONS+=("$SCRIPT" "$SCRIPT")
# Remove underscores and capitalize first letter of each word
DISPLAY_NAME=$(echo "$SCRIPT" | sed 's/_/ /g' | awk '{for(i=1;i<=NF;i++) $i=toupper(substr($i,1,1)) substr($i,2)} 1')
MENU_OPTIONS+=("$SCRIPT" "$DISPLAY_NAME")
done
# Show menu with the new title