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.
This commit is contained in:
i-c-u-p 2022-04-29 08:28:46 +00:00
parent e273a05a54
commit 761a3a5647
No known key found for this signature in database
GPG Key ID: ABB80C12170FC0D1
1 changed files with 6 additions and 6 deletions

View File

@ -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
------------------------------------------------------------------------