summaryrefslogtreecommitdiff
path: root/utils/lib.sh
diff options
context:
space:
mode:
authorMarkus Heiser <markus.heiser@darmarit.de>2021-07-18 17:20:37 +0200
committerMarkus Heiser <markus.heiser@darmarit.de>2021-07-21 13:38:28 +0200
commit19abaf272def8faee5e7d3652d95413c3256d638 (patch)
tree3e3e49cba88cccc029fdfd9bbad50c7a55930df9 /utils/lib.sh
parent51c06722c3c33338f62f237920be08c46b77999a (diff)
downloadsearxng-19abaf272def8faee5e7d3652d95413c3256d638.tar.gz
searxng-19abaf272def8faee5e7d3652d95413c3256d638.zip
[mod] make pyenv.OK() less verbose when pyenv is OK
Prompt the verbose messages ... PYENV [check] import yaml --> OK PYENV OK only when environment $VERBOSE is active. Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Diffstat (limited to 'utils/lib.sh')
-rwxr-xr-xutils/lib.sh12
1 files changed, 8 insertions, 4 deletions
diff --git a/utils/lib.sh b/utils/lib.sh
index 014d4a740..d2f5b757e 100755
--- a/utils/lib.sh
+++ b/utils/lib.sh
@@ -606,9 +606,13 @@ pyenv.OK() {
return 1
fi
- pyenv.check \
- | "${PY_ENV_BIN}/python" 2>&1 \
- | prefix_stdout "${_Blue}PYENV ${_creset}[check] "
+ if [ "$VERBOSE" = "1" ]; then
+ pyenv.check \
+ | "${PY_ENV_BIN}/python" 2>&1 \
+ | prefix_stdout "${_Blue}PYENV ${_creset}[check] "
+ else
+ pyenv.check | "${PY_ENV_BIN}/python" 1>/dev/null
+ fi
local err=${PIPESTATUS[1]}
if [ "$err" -ne "0" ]; then
@@ -616,7 +620,7 @@ pyenv.OK() {
return "$err"
fi
- build_msg PYENV "OK"
+ [ "$VERBOSE" = "1" ] && build_msg PYENV "OK"
_pyenv_OK="OK"
return 0
}