From c7536cef0e533674056d80b219c073d7a3f16ee4 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:31:29 +0000 Subject: [PATCH] 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. --- easy-arch.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/easy-arch.sh b/easy-arch.sh index 27e3353..ebddd9b 100755 --- a/easy-arch.sh +++ b/easy-arch.sh @@ -5,7 +5,6 @@ clear # Colors/formatting for echo BOLD='\e[1m' - UNDERLINE='\e[4m' RESET='\e[0m' # Reset text to default appearance # High intensity colors: BRED='\e[91m' @@ -15,7 +14,7 @@ clear # Pretty print (function). print () { - echo -e "${BOLD}${BYELLOW}[ ${BGREEN}•${BYELLOW} ] ${UNDERLINE}$1${RESET}" + echo -e "${BOLD}${BYELLOW}[ ${BGREEN}•${BYELLOW} ] $1${RESET}" } # Alert user of bad input (function). incEcho () { @@ -247,7 +246,7 @@ do done # 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 disk_response=${disk_response,,} if ! [[ "$disk_response" =~ ^(yes|y)$ ]]; then