mirror of
https://github.com/searxng/searxng.git
synced 2024-11-22 12:10:11 +01:00
[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>
This commit is contained in:
parent
51c06722c3
commit
19abaf272d
12
utils/lib.sh
12
utils/lib.sh
@ -606,9 +606,13 @@ pyenv.OK() {
|
|||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
pyenv.check \
|
if [ "$VERBOSE" = "1" ]; then
|
||||||
| "${PY_ENV_BIN}/python" 2>&1 \
|
pyenv.check \
|
||||||
| prefix_stdout "${_Blue}PYENV ${_creset}[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]}
|
local err=${PIPESTATUS[1]}
|
||||||
if [ "$err" -ne "0" ]; then
|
if [ "$err" -ne "0" ]; then
|
||||||
@ -616,7 +620,7 @@ pyenv.OK() {
|
|||||||
return "$err"
|
return "$err"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
build_msg PYENV "OK"
|
[ "$VERBOSE" = "1" ] && build_msg PYENV "OK"
|
||||||
_pyenv_OK="OK"
|
_pyenv_OK="OK"
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user