Commit be87a08b authored by Natanael Copa's avatar Natanael Copa

setup-keymap: allow specify the variant together with layout

Some users may know exactly which variant they want, and instead of
asking them two questions, we accept if users types in the variant at
the first question.

if the variant does not exist, then user is prompted.
parent e90ed724
......@@ -38,7 +38,13 @@ select_layout() {
default_read layout "$layout"
if [ "$layout" = "abort" ] || [ "$layout" = "none" ] ; then
goodbye 0
elif [ -d "$MAPDIR/$layout" ] ; then
fi
set -- $layout
if [ $# -eq 2 ]; then
layout="$1"
variant="$2"
fi
if [ -d "$MAPDIR/$layout" ] ; then
return 0
fi
done
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment