forked from zaclys/searxng
Merge pull request #35 from return42/fix-manage
[fix] manage - fix miss usage of 'set -e'
This commit is contained in:
commit
f45729ae72
17
manage
17
manage
|
@ -343,14 +343,17 @@ pyenv.install() {
|
||||||
if pyenv.install.OK > /dev/null; then
|
if pyenv.install.OK > /dev/null; then
|
||||||
return 0
|
return 0
|
||||||
fi
|
fi
|
||||||
pyenv
|
|
||||||
pyenv.OK || die 42 "error while build pyenv (${PY_ENV_BIN})"
|
|
||||||
|
|
||||||
( set -e
|
( set -e
|
||||||
build_msg PYENV "[install] pip install -e 'searx${PY_SETUP_EXTRAS}'"
|
pyenv
|
||||||
"${PY_ENV_BIN}/python" -m pip install -e ".${PY_SETUP_EXTRAS}"
|
build_msg PYENV "[install] pip install -e 'searx${PY_SETUP_EXTRAS}'"
|
||||||
buildenv
|
"${PY_ENV_BIN}/python" -m pip install -e ".${PY_SETUP_EXTRAS}"
|
||||||
) || die 42 "error while pip install (${PY_ENV_BIN})"
|
buildenv
|
||||||
|
)
|
||||||
|
local exit_val=$?
|
||||||
|
if [ ! $exit_val -eq 0 ]; then
|
||||||
|
die 42 "error while pip install (${PY_ENV_BIN})"
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
pyenv.uninstall() {
|
pyenv.uninstall() {
|
||||||
|
@ -462,7 +465,7 @@ themes.simple() {
|
||||||
PYLINT_FILES=()
|
PYLINT_FILES=()
|
||||||
while IFS= read -r line; do
|
while IFS= read -r line; do
|
||||||
PYLINT_FILES+=("$line")
|
PYLINT_FILES+=("$line")
|
||||||
done <<< $(pylint.FILES)
|
done <<< "$(pylint.FILES)"
|
||||||
|
|
||||||
# shellcheck disable=SC2119
|
# shellcheck disable=SC2119
|
||||||
main() {
|
main() {
|
||||||
|
|
Loading…
Reference in New Issue