From f51cc75244cea17cba2ad30771f9e0c11df54782 Mon Sep 17 00:00:00 2001 From: deathbybandaid Date: Sat, 12 Mar 2022 15:22:38 -0500 Subject: [PATCH] test --- template_setup.sh | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/template_setup.sh b/template_setup.sh index f737744..d6e3d28 100644 --- a/template_setup.sh +++ b/template_setup.sh @@ -4,16 +4,15 @@ echo "Setting up template environment" # * colors # * dbb avatar -# Set these values so the installer can still run in color -COL_NC='\e[0m' # No Color -COL_LIGHT_GREEN='\e[1;32m' -COL_LIGHT_RED='\e[1;31m' -TICK="[${COL_LIGHT_GREEN}✓${COL_NC}]" -CROSS="[${COL_LIGHT_RED}✗${COL_NC}]" -INFO="[i]" -# shellcheck disable=SC2034 -DONE="${COL_LIGHT_GREEN} done!${COL_NC}" -OVER="\\r\\033[K" +## These are the colors used throughout the script. +red='\e[1;31m%s\e[0m\n' +COL_GREEN='\e[1;32m%s\e[0m\n' +yellow='\e[1;33m%s\e[0m\n' +blue='\e[1;34m%s\e[0m\n' +magenta='\e[1;35m%s\e[0m\n' +cyan='\e[1;36m%s\e[0m\n' +orange='\e[38;5;166m%s\e[0m\n' +lightblue='\e[38;5;111m%s\e[0m\n' ## Script Location @@ -26,7 +25,7 @@ do TOPLEVELSUBDIRSCRIPTTEXT=$(echo "`basename $scriptfile | cut -f 1 -d '.' | sed 's/[0-9\-]/ /g'`") - printf "${COL_LIGHT_GREEN} $TOPLEVELSUBDIRSCRIPTTEXT" + printf "${COL_GREEN}" "$TOPLEVELSUBDIRSCRIPTTEXT" /bin/bash $scriptfile