This commit is contained in:
Tommaso Chiti 2022-05-28 17:16:45 +02:00
parent 4f0f039ef8
commit 28021f29fe

View file

@ -15,6 +15,12 @@ RESET='\e[0m'
info_print () {
echo -e "${BOLD}${BYELLOW}[ ${BGREEN}${BYELLOW} ] $1${RESET}"
}
# Pretty print for input (function).
input_print () {
echo -ne "${BOLD}${BYELLOW}[ ${BGREEN}${BYELLOW} ] $1${RESET}"
}
# Alert user of bad input (function).
error_print () {
echo -e "${BOLD}${BRED}[ ${BBLUE}${BRED} ] $1${RESET}"
@ -183,7 +189,7 @@ hostname_selector () {
# User chooses the locale (function).
locale_selector () {
info_print "Please insert the locale you use (format: xx_XX. Enter empty to use en_US, or \"/\" to search locales): " locale
input_print "Please insert the locale you use (format: xx_XX. Enter empty to use en_US, or \"/\" to search locales): " locale
read -r locale
case "$locale" in
'') locale="en_US.UTF-8"