common/xbps-src/shutils/common.sh: ensure white text in msg_normal
Most terminals see '1m' as being a "bright colour" modifier, but others consider it to be the "bold font" modifier, like the GitHub Actions log. '97m' is a standalone "bright white" that is supported in most terminals, including GitHub Actions, and is ignored where not supported.
This commit is contained in:
parent
944ab17b06
commit
a5a7821a67
|
@ -176,8 +176,13 @@ msg_warn_nochroot() {
|
|||
|
||||
msg_normal() {
|
||||
if [ -z "$XBPS_QUIET" ]; then
|
||||
# normal messages in bold
|
||||
[ -n "$NOCOLORS" ] || printf "\033[1m"
|
||||
# normal messages in bright bold white
|
||||
if [ "$XBPS_BUILD_ENVIRONMENT" = "void-packages-ci" ]; then
|
||||
# Github CI considers '1m' to be just a font bold
|
||||
[ -n "$NOCOLORS" ] || printf "\033[97m\033[1m"
|
||||
else
|
||||
[ -n "$NOCOLORS" ] || printf "\033[1m"
|
||||
fi
|
||||
printf "=> $@"
|
||||
[ -n "$NOCOLORS" ] || printf "\033[m"
|
||||
fi
|
||||
|
@ -201,7 +206,12 @@ report_broken() {
|
|||
}
|
||||
|
||||
msg_normal_append() {
|
||||
[ -n "$NOCOLORS" ] || printf "\033[1m"
|
||||
if [ "$XBPS_BUILD_ENVIRONMENT" = "void-packages-ci" ]; then
|
||||
# Github CI considers '1m' to be just a font bold
|
||||
[ -n "$NOCOLORS" ] || printf "\033[97m\033[1m"
|
||||
else
|
||||
[ -n "$NOCOLORS" ] || printf "\033[1m"
|
||||
fi
|
||||
printf "$@"
|
||||
[ -n "$NOCOLORS" ] || printf "\033[m"
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue