Skip to content

Commit 1389b46

Browse files
committed
common.sh(print_status): fix color of error messages.
Correction for 6072ed9 commit. No functional changes.
1 parent 89522b7 commit 1389b46

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/main/scripts/ci/common.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,13 @@ print_status() {
22
local we_failed="$1"
33
local msg="$2"
44
local status='SUCCESS'
5+
local color=32
56

67
if [ -n "$we_failed" ]; then
78
status='FAIL'
9+
color=31
810
fi
9-
printf "* %s... \033[1;32m%s\033[0m\n" "$msg" "$status"
11+
printf "* %s... \033[1;%dm%s\033[0m\n" "$msg" "$color" "$status"
1012
}
1113

1214
print_log() {

0 commit comments

Comments
 (0)