Fix line being swallowed by fzf

This commit is contained in:
Augusto Gunsch 2021-08-13 15:09:11 -03:00
parent 4cc5814e5b
commit a2581f7b49
No known key found for this signature in database
GPG Key ID: F7EEFE29825C72DC
1 changed files with 3 additions and 3 deletions

View File

@ -332,16 +332,16 @@ prompt_all() {
qpushd /usr/share/zoneinfo
TIMEZONE="$(fzf --layout=reverse --height=20)"
qpopd
echo "$TIMEZONE"
echo "Choose timezone: $TIMEZONE"
echo -n "Choose locale:"
LOCALE=$(sed '/^#\s/D' < /etc/locale.gen | sed '/^#$/D' | sed 's/^#//' | fzf --layout=reverse --height=20)
echo "$LOCALE"
echo "Choose locale: $LOCALE"
[ -f keyboard-map.csv ] || curl -sL "$KEYBOARD_MAP" -o keyboard-map.csv
echo -n "Choose keyboard layout:"
KBD_LAYOUT="$(awk -F, '{print $1}' keyboard-map.csv | fzf --layout=reverse --height=20)"
echo "$KBD_LAYOUT"
echo "Choose keyboard layout: $KBD_LAYOUT"
ask_password root
ROOT_PASSWORD="$USER_PASSWORD"