mirror of
https://github.com/classy-giraffe/easy-arch.git
synced 2025-11-17 11:30:55 +00:00
Fixes.
This commit is contained in:
parent
4f0f039ef8
commit
28021f29fe
1 changed files with 7 additions and 1 deletions
|
|
@ -15,6 +15,12 @@ RESET='\e[0m'
|
||||||
info_print () {
|
info_print () {
|
||||||
echo -e "${BOLD}${BYELLOW}[ ${BGREEN}•${BYELLOW} ] $1${RESET}"
|
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).
|
# Alert user of bad input (function).
|
||||||
error_print () {
|
error_print () {
|
||||||
echo -e "${BOLD}${BRED}[ ${BBLUE}•${BRED} ] $1${RESET}"
|
echo -e "${BOLD}${BRED}[ ${BBLUE}•${BRED} ] $1${RESET}"
|
||||||
|
|
@ -183,7 +189,7 @@ hostname_selector () {
|
||||||
|
|
||||||
# User chooses the locale (function).
|
# User chooses the locale (function).
|
||||||
locale_selector () {
|
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
|
read -r locale
|
||||||
case "$locale" in
|
case "$locale" in
|
||||||
'') locale="en_US.UTF-8"
|
'') locale="en_US.UTF-8"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue