Update-FlatpakSelector
This commit is contained in:
parent
93f8435b2f
commit
ee8a2e591e
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue