Revision 9867
Added by Aaron Marcuse-Kubitza over 11 years ago
lib/sh/util.sh | ||
---|---|---|
332 | 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 |
# usage: (verbosity_compat; cmd) # cmd doesn't support verbosity='' |
|
336 |
function verbosity_compat() |
|
337 |
{ |
|
338 |
echo_func |
|
339 |
if test "$verbosity" = ''; then local verbosity; unset verbosity; fi |
|
340 |
} |
|
341 |
alias verbosity_compat='declare verbosity; "verbosity_compat"' |
|
335 | 342 |
|
343 |
|
|
336 | 344 |
# indent for call tree. this is *not* the log_level (below). |
337 | 345 |
: "${log_indent_step=| }" "${log_indent=}" |
338 | 346 |
export log_indent_step log_indent # propagate to invoked commands |
Also available in: Unified diff
lib/sh/util.sh: added verbosity_compat(), for use with commands that don't support verbosity=""