فهرست منبع

more color tuning

Christian Winther 1 سال پیش
والد
کامیت
ca0a25912a
2فایلهای تغییر یافته به همراه7 افزوده شده و 6 حذف شده
  1. 6 6
      docker/shared/root/docker/entrypoint.sh
  2. 1 0
      docker/shared/root/docker/helpers.sh

+ 6 - 6
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}"
         ;;

+ 1 - 0
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