From 761a3a5647f4d09f3ca8b55a1ecaed16c6361474 Mon Sep 17 00:00:00 2001 From: i-c-u-p <96894903+i-c-u-p@users.noreply.github.com> Date: Fri, 29 Apr 2022 08:28:46 +0000 Subject: [PATCH] use escape code instead of tput for bolding, use bright red for format warning if the script is being run in the live arch iso's terminal and not through ssh, bolding red doesn't change text thickness and just makes it a brighter shade (\e[91m). Its now bright red by default so the color is similar on both. --- scripts/startup.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/scripts/startup.sh b/scripts/startup.sh index 24f848d..589ff9e 100755 --- a/scripts/startup.sh +++ b/scripts/startup.sh @@ -6,11 +6,11 @@ # @stdout Output routed to startup.log # @stderror Output routed to startup.log -# Colors/formatting for echo: { -RED='\e[31m' -BOLD=$(tput bold) -RESET='\e[0m' # Reset text to default appearance -# } +# Colors/formatting for echo + BOLD='\e[1m' + RESET='\e[0m' # Reset text to default appearance +# High intensity colors: + BRED='\e[91m' # @setting-header General Settings # @setting CONFIG_FILE string[$CONFIGS_DIR/setup.conf] Location of setup.conf to be used by set_option and all subsequent scripts. @@ -240,7 +240,7 @@ esac diskpart () { echo -e " ------------------------------------------------------------------------ - ${RED}${BOLD}THIS WILL FORMAT AND DELETE ALL DATA ON THE DISK!${RESET} + ${BRED}${BOLD}THIS WILL FORMAT AND DELETE ALL DATA ON THE DISK!${RESET} Please make sure you know what you are doing because after formating your disk there is no way to get data back ------------------------------------------------------------------------