Remove dash from keymaps

This commit is contained in:
Austin Horstman 2022-01-15 16:32:39 -06:00
parent 769c077bdb
commit 13b4ff1552
1 changed files with 2 additions and 2 deletions

View File

@ -73,7 +73,7 @@ esac
}
keymap () {
# These are default key maps as presented in official arch repo archinstall
options=(-by -ca -cf -cz -de -dk -es -et -fa -fi -fr -gr -hu -il -it -lt -lv -mk -nl -no -pl -ro -ru -sg -ua -uk -us)
options=(by ca cf cz de dk es et fa fi fr gr hu il it lt lv mk nl no pl ro ru sg ua uk us)
PS3="
Please select key board layout from this list
@ -81,7 +81,7 @@ Please select key board layout from this list
select keymap in "${options[@]}"
do
# check if selection is part of list, silence error output and use else block for output
if echo -e '%s\n' "${options[@]}" | grep -Fqw -- $keymap 2> /dev/null; then
if echo -e '%s\n' "${options[@]}" | grep -Fqw $keymap 2> /dev/null; then
echo -e "\nYour key boards layout: ${keymap} \n"
set_option KEYMAP $keymap
break