From ca0a25912aa910164ccb357003c1683ed362355b Mon Sep 17 00:00:00 2001 From: Christian Winther Date: Wed, 17 Jan 2024 16:25:34 +0000 Subject: [PATCH] more color tuning --- docker/shared/root/docker/entrypoint.sh | 12 ++++++------ docker/shared/root/docker/helpers.sh | 1 + 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/docker/shared/root/docker/entrypoint.sh b/docker/shared/root/docker/entrypoint.sh index 1b5f193d..44310fa7 100755 --- a/docker/shared/root/docker/entrypoint.sh +++ b/docker/shared/root/docker/entrypoint.sh @@ -58,9 +58,9 @@ find "${ENTRYPOINT_D_ROOT}" -follow -type f -print | sort -V | while read -r fil log-error-and-exit "File [${file}] is not executable (please 'chmod +x' it)" fi - log-info "========================================" - log-info "Sourcing [${file}]" - log-info "========================================" + log-info "${section_message_color}========================================${color_clear}" + log-info "${section_message_color}Sourcing [${file}]${color_clear}" + log-info "${section_message_color}========================================${color_clear}" # shellcheck disable=SC1090 source "${file}" @@ -76,9 +76,9 @@ find "${ENTRYPOINT_D_ROOT}" -follow -type f -print | sort -V | while read -r fil log-error-and-exit "File [${file}] is not executable (please 'chmod +x' it)" fi - log-info "========================================" - log-info "Executing [${file}]" - log-info "========================================" + log-info "${section_message_color}========================================${color_clear}" + log-info "${section_message_color}Executing [${file}]${color_clear}" + log-info "${section_message_color}========================================${color_clear}" "${file}" ;; diff --git a/docker/shared/root/docker/helpers.sh b/docker/shared/root/docker/helpers.sh index cd461617..b33528e1 100644 --- a/docker/shared/root/docker/helpers.sh +++ b/docker/shared/root/docker/helpers.sh @@ -11,6 +11,7 @@ declare -g error_message_color="\033[1;31m" declare -g warn_message_color="\033[1;34m" declare -g notice_message_color="\033[1;34m" declare -g success_message_color="\033[1;32m" +declare -g section_message_color="\033[1;35m" declare -g color_clear="\033[1;0m" # Current and previous log prefix