Revision 14733
Added by Aaron Marcuse-Kubitza over 10 years ago
util.sh | ||
---|---|---|
681 | 681 |
alias verbosity_min='declare verbosity="$verbosity"; "verbosity_min"' |
682 | 682 |
|
683 | 683 |
# usage: (verbosity_compat; cmd) |
684 |
# **WARNING**: don't run this until right before executing an external command, |
|
685 |
# so that it doesn't mess up the logging mechanism |
|
684 | 686 |
function verbosity_compat() |
685 | 687 |
{ log_local; log++; echo_func; if ((verbosity == 1)); then unset verbosity; fi;} |
686 | 688 |
alias verbosity_compat='declare verbosity="$verbosity"; "verbosity_compat"' |
Also available in: Unified diff
fix: lib/sh/util.sh: verbosity_compat(): documented that this should not be run until right before executing an external command, so that it doesn't mess up the logging mechanism