mirror of
https://github.com/aljazceru/omakub.git
synced 2026-01-24 14:24:20 +01:00
Account for the subcommand
This commit is contained in:
@@ -19,7 +19,7 @@ set_font() {
|
||||
sed -i "s/\"editor.fontFamily\": \".*\"/\"editor.fontFamily\": \"$font_name\"/g" ~/.config/Code/User/settings.json
|
||||
}
|
||||
|
||||
if [ "$#" -gt 0 ]; then
|
||||
if [ "$#" -gt 1 ]; then
|
||||
choice=${!#}
|
||||
else
|
||||
choice=$(gum choose "Cascadia Mono" "Fira Mono" "JetBrains Mono" "Meslo" --height 6)
|
||||
|
||||
Reference in New Issue
Block a user