Revision 12826
Added by Aaron Marcuse-Kubitza almost 11 years ago
trunk/lib/sh/util.sh | ||
---|---|---|
479 | 479 |
verbosity_min() # usage: verbosity_min {<min>|''} |
480 | 480 |
# WARNING: '' is a special value that causes $verbosity to be overwritten to '' |
481 | 481 |
{ if test ! "$1" -o "$(verbosity_int)" -lt "$1"; then verbosity="$1"; fi; } |
482 |
alias verbosity_min='log_local; "verbosity_min"'
|
|
482 |
alias verbosity_min='declare verbosity="$verbosity"; "verbosity_min"'
|
|
483 | 483 |
|
484 | 484 |
# usage: (verbosity_compat; cmd) |
485 | 485 |
function verbosity_compat() |
Also available in: Unified diff
bugfix: lib/sh/util.sh: verbosity_min alias: need to use `declare verbosity="$verbosity"` instead of log_local now that verbosity is not one of the vars changed by log++