From fffa88482a3b112d73dbdcff7483cdd182d5247e Mon Sep 17 00:00:00 2001 From: Your Name Date: Wed, 25 Jun 2025 22:32:04 +1200 Subject: [PATCH] Modify buildtestpublish_all.sh --- buildtestpublish_all.sh | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/buildtestpublish_all.sh b/buildtestpublish_all.sh index 87c4504..be3b736 100755 --- a/buildtestpublish_all.sh +++ b/buildtestpublish_all.sh @@ -175,27 +175,27 @@ function print_summary() { # Format status with proper spacing and colors for Unicode characters local build_col test_col publish_col - # Format build status + # Format build status with colors case "$build_status" in - "✓") build_col=" ${GREEN}✓${NC} " ;; - "✗") build_col=" ${RED}✗${NC} " ;; - "SKIP") build_col=" ${YELLOW}-${NC} " ;; + "✓") build_col=$(printf " ${GREEN}✓${NC} ") ;; + "✗") build_col=$(printf " ${RED}✗${NC} ") ;; + "SKIP") build_col=$(printf " ${YELLOW}-${NC} ") ;; *) build_col=" - " ;; esac - # Format test status + # Format test status with colors case "$test_status" in - "✓") test_col=" ${GREEN}✓${NC} " ;; - "✗") test_col=" ${RED}✗${NC} " ;; - "SKIP") test_col=" ${YELLOW}-${NC} " ;; + "✓") test_col=$(printf " ${GREEN}✓${NC} ") ;; + "✗") test_col=$(printf " ${RED}✗${NC} ") ;; + "SKIP") test_col=$(printf " ${YELLOW}-${NC} ") ;; *) test_col=" - " ;; esac - # Format publish status + # Format publish status with colors case "$publish_status" in - "✓") publish_col=" ${GREEN}✓${NC} " ;; - "✗") publish_col=" ${RED}✗${NC} " ;; - "SKIP") publish_col=" ${YELLOW}-${NC} " ;; + "✓") publish_col=$(printf " ${GREEN}✓${NC} ") ;; + "✗") publish_col=$(printf " ${RED}✗${NC} ") ;; + "SKIP") publish_col=$(printf " ${YELLOW}-${NC} ") ;; *) publish_col=" - " ;; esac