mirror of
https://github.com/classy-giraffe/easy-arch.git
synced 2025-11-17 19:40:55 +00:00
remove underline text formatting from script
if the script is being run in the live arch iso's terminal and not through ssh, text underlines don't appear and the text just becomes blue, so they've been removed to make the appearance on both more alike.
This commit is contained in:
parent
e6daa6f659
commit
c7536cef0e
1 changed files with 2 additions and 3 deletions
|
|
@ -5,7 +5,6 @@ clear
|
||||||
|
|
||||||
# Colors/formatting for echo
|
# Colors/formatting for echo
|
||||||
BOLD='\e[1m'
|
BOLD='\e[1m'
|
||||||
UNDERLINE='\e[4m'
|
|
||||||
RESET='\e[0m' # Reset text to default appearance
|
RESET='\e[0m' # Reset text to default appearance
|
||||||
# High intensity colors:
|
# High intensity colors:
|
||||||
BRED='\e[91m'
|
BRED='\e[91m'
|
||||||
|
|
@ -15,7 +14,7 @@ clear
|
||||||
|
|
||||||
# Pretty print (function).
|
# Pretty print (function).
|
||||||
print () {
|
print () {
|
||||||
echo -e "${BOLD}${BYELLOW}[ ${BGREEN}•${BYELLOW} ] ${UNDERLINE}$1${RESET}"
|
echo -e "${BOLD}${BYELLOW}[ ${BGREEN}•${BYELLOW} ] $1${RESET}"
|
||||||
}
|
}
|
||||||
# Alert user of bad input (function).
|
# Alert user of bad input (function).
|
||||||
incEcho () {
|
incEcho () {
|
||||||
|
|
@ -247,7 +246,7 @@ do
|
||||||
done
|
done
|
||||||
|
|
||||||
# Warn user about deletion of old partition scheme.
|
# Warn user about deletion of old partition scheme.
|
||||||
echo -en "${BOLD}${UNDERLINE}${BRED}This will delete the current partition table on $DISK once installation starts. Do you agree [y/N]?:${RESET} "
|
echo -en "${BOLD}${BRED}This will delete the current partition table on $DISK once installation starts. Do you agree [y/N]?:${RESET} "
|
||||||
read -r disk_response
|
read -r disk_response
|
||||||
disk_response=${disk_response,,}
|
disk_response=${disk_response,,}
|
||||||
if ! [[ "$disk_response" =~ ^(yes|y)$ ]]; then
|
if ! [[ "$disk_response" =~ ^(yes|y)$ ]]; then
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue