Revision 12827
Added by Aaron Marcuse-Kubitza almost 11 years ago
util.sh | ||
---|---|---|
484 | 484 |
# usage: (verbosity_compat; cmd) |
485 | 485 |
function verbosity_compat() |
486 | 486 |
{ echo_func; if ((verbosity == 1)); then unset verbosity; fi; } |
487 |
alias verbosity_compat='declare verbosity; "verbosity_compat"' |
|
487 |
alias verbosity_compat='declare verbosity="$verbosity"; "verbosity_compat"'
|
|
488 | 488 |
|
489 | 489 |
|
490 | 490 |
# indent for call tree. this is *not* the log_level (below). |
Also available in: Unified diff
bugfix: lib/sh/util.sh: verbosity_compat alias: need to use `declare verbosity="$verbosity"` instead of `declare verbosity`, which would just clear $verbosity