From ee8a2e591e18eb56947946b137a03a66e6dd8e03 Mon Sep 17 00:00:00 2001 From: TyleoDvDelaware3217 Date: Thu, 29 May 2025 04:04:02 +0200 Subject: [PATCH] Update-FlatpakSelector --- flatpak_selections | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/flatpak_selections b/flatpak_selections index 260186a..1cc8ee1 100644 --- a/flatpak_selections +++ b/flatpak_selections @@ -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