Project

General

Profile

« Previous | Next » 

Revision 9846

lib/sh/util.sh: verbosity_min(): support value '', which sets verbosity=''

View differences:

lib/sh/util.sh
328 328
alias clog++='"log++" ' # last space alias-expands next word
329 329
alias clog--='"log--" ' # last space alias-expands next word
330 330

  
331
verbosity_min() # usage: verbosity_min min
332
{ if test "$(verbosity_int)" -lt "$1"; then verbosity="$1"; fi; }
331
verbosity_min() # usage: verbosity_min {min|} # ''->verbosity=''
332
{ if test ! "$1" -o "$(verbosity_int)" -lt "$1"; then verbosity="$1"; fi; }
333 333
alias verbosity_min='log_local; "verbosity_min"'
334 334

  
335 335

  

Also available in: Unified diff