From 884609f661e20cc094157cb82dd77bfc9948c361 Mon Sep 17 00:00:00 2001 From: Your Name Date: Wed, 25 Jun 2025 22:42:52 +1200 Subject: [PATCH] Modify buildtestpublish_all.sh --- buildtestpublish_all.sh | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/buildtestpublish_all.sh b/buildtestpublish_all.sh index 1cebd84..ea07165 100755 --- a/buildtestpublish_all.sh +++ b/buildtestpublish_all.sh @@ -202,25 +202,25 @@ function print_summary() { # Format build status with colors case "$build_status" in - "✓") build_col=$(printf " ${GREEN}✓${NC} ") ;; - "✗") build_col=$(printf " ${RED}✗${NC} ") ;; - "SKIP") build_col=$(printf " ${YELLOW}-${NC} ") ;; + "✓") build_col=$(printf " %s✓%s " "$GREEN" "$NC") ;; + "✗") build_col=$(printf " %s✗%s " "$RED" "$NC") ;; + "SKIP") build_col=$(printf " %s-%s " "$YELLOW" "$NC") ;; *) build_col=" - " ;; esac # Format test status with colors case "$test_status" in - "✓") test_col=$(printf " ${GREEN}✓${NC} ") ;; - "✗") test_col=$(printf " ${RED}✗${NC} ") ;; - "SKIP") test_col=$(printf " ${YELLOW}-${NC} ") ;; + "✓") test_col=$(printf " %s✓%s " "$GREEN" "$NC") ;; + "✗") test_col=$(printf " %s✗%s " "$RED" "$NC") ;; + "SKIP") test_col=$(printf " %s-%s " "$YELLOW" "$NC") ;; *) test_col=" - " ;; esac # Format publish status with colors case "$publish_status" in - "✓") publish_col=$(printf " ${GREEN}✓${NC} ") ;; - "✗") publish_col=$(printf " ${RED}✗${NC} ") ;; - "SKIP") publish_col=$(printf " ${YELLOW}-${NC} ") ;; + "✓") publish_col=$(printf " %s✓%s " "$GREEN" "$NC") ;; + "✗") publish_col=$(printf " %s✗%s " "$RED" "$NC") ;; + "SKIP") publish_col=$(printf " %s-%s " "$YELLOW" "$NC") ;; *) publish_col=" - " ;; esac