Project

General

Profile

« Previous | Next » 

Revision 12837

bugfix: lib/sh/util.sh: highlight_msg(): need to reset any existing formatting before applying new formatting

View differences:

util.sh
504 504
{
505 505
	kw_params format; local format="${format-1}" # bold
506 506
	local highlight="$(test "$format" && can_highlight_msg; exit2bool)"
507
	echo "${highlight:+[${format}m}$1${highlight:+}"
507
	echo "${highlight:+[0;${format}m}$1${highlight:+}"
508 508
}
509 509

  
510 510
log_line!() # highlights log_level 1 messages to stand out against other output

Also available in: Unified diff