Project

General

Profile

« Previous | Next » 

Revision 12836

lib/sh/util.sh: added mk_hint() and use it in log_hint!()

View differences:

trunk/lib/sh/util.sh
524 524

  
525 525
log_info() { symbol=: log_custom "$@"; }
526 526

  
527
log_hint!() { format=7 log_info " $1 "; }
527
mk_hint() { format=7 highlight_msg " $1 "; }
528 528

  
529
log_hint!() { log_info "$(mk_hint "$@")"; }
530

  
529 531
log_hint() # usage: cmd || [benign_error=1] log_hint msg [|| handle error]
530 532
# msg only displayed if not benign error
531 533
{ kw_params benign_error; if test ! "$benign_error"; then log_hint! "$@"; fi; }

Also available in: Unified diff