Add prompt echoing

This commit is contained in:
Augusto Gunsch 2021-08-13 13:28:57 -03:00
parent 0278347a65
commit 85ac0c9ff5
No known key found for this signature in database
GPG Key ID: F7EEFE29825C72DC
1 changed files with 6 additions and 3 deletions

View File

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