Skip to content

Commit

Permalink
Minor change
Browse files Browse the repository at this point in the history
  • Loading branch information
ale5000-git committed Oct 29, 2024
1 parent 080e6a8 commit ab457db
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tools/bits-info.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit ab457db

Please sign in to comment.