armbian-next: fix ANSI logs, use reset at strategic places

This commit is contained in:
Ricardo Pardini
2023-01-21 18:54:03 +01:00
parent eb30aac310
commit d95478281b
2 changed files with 6 additions and 5 deletions

View File

@@ -18,6 +18,7 @@ function logging_init() {
declare -g bright_red_color="\e[1;31m" red_color="\e[0;31m"
declare -g bright_blue_color="\e[1;34m" blue_color="\e[0;34m"
declare -g bright_magenta_color="\e[1;35m" magenta_color="\e[0;35m"
declare -g ansi_reset_color="\e[0m"
declare -g -i logging_section_counter=0 # -i: integer
declare -g tool_color="${gray_color}" # default to gray... (should be ok on terminals, @TODO: I've seen it too dark on a few random screenshots though
if [[ "${CI}" == "true" ]]; then # ... but that is too dark for Github Actions