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:
parent
e273a05a54
commit
761a3a5647
|
|
@ -6,11 +6,11 @@
|
||||||
# @stdout Output routed to startup.log
|
# @stdout Output routed to startup.log
|
||||||
# @stderror Output routed to startup.log
|
# @stderror Output routed to startup.log
|
||||||
|
|
||||||
# Colors/formatting for echo: {
|
# Colors/formatting for echo
|
||||||
RED='\e[31m'
|
BOLD='\e[1m'
|
||||||
BOLD=$(tput bold)
|
RESET='\e[0m' # Reset text to default appearance
|
||||||
RESET='\e[0m' # Reset text to default appearance
|
# High intensity colors:
|
||||||
# }
|
BRED='\e[91m'
|
||||||
|
|
||||||
# @setting-header General Settings
|
# @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.
|
# @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 () {
|
diskpart () {
|
||||||
echo -e "
|
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
|
Please make sure you know what you are doing because
|
||||||
after formating your disk there is no way to get data back
|
after formating your disk there is no way to get data back
|
||||||
------------------------------------------------------------------------
|
------------------------------------------------------------------------
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue