From 28021f29fe0d29b72a31ec42b9403e9a2af89b2d Mon Sep 17 00:00:00 2001 From: Tommaso Chiti Date: Sat, 28 May 2022 17:16:45 +0200 Subject: [PATCH] Fixes. --- easy-arch.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/easy-arch.sh b/easy-arch.sh index 39622e6..00c860d 100755 --- a/easy-arch.sh +++ b/easy-arch.sh @@ -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"