Skip to content

Commit

Permalink
Account for the subcommand
Browse files Browse the repository at this point in the history
  • Loading branch information
dhh committed Jun 11, 2024
1 parent fdc6d7e commit 669fa28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/omakub-font
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 669fa28

Please sign in to comment.