From ab457dbd17cdb19f4d3e06dfaec48a1d21fd383d Mon Sep 17 00:00:00 2001 From: ale5000 <15793015+ale5000-git@users.noreply.github.com> Date: Tue, 29 Oct 2024 19:28:35 +0100 Subject: [PATCH] Minor change --- tools/bits-info.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tools/bits-info.sh b/tools/bits-info.sh index bdd9e1dc..344c4ce4 100755 --- a/tools/bits-info.sh +++ b/tools/bits-info.sh @@ -104,7 +104,13 @@ convert_max_unsigned_int_to_bit() warn_msg() { - printf 1>&2 '\r\033[0;33m\r%s\n\033[0m\r \r' "WARNING: ${1}" + if test "${NO_COLOR:-0}" != 0; then + printf 1>&2 '%s\n' "WARNING: ${1}" + elif test "${CI:-false}" = 'false'; then + printf 1>&2 '\033[0;33m\r%s\n\033[0m\r \r' "WARNING: ${1}" + else + printf 1>&2 '\033[0;33m%s\033[0m\n' "WARNING: ${1}" + fi } inc_num()