diff options
| author | Alexandre Flament <alex@al-f.net> | 2021-04-27 14:39:43 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-04-27 14:39:43 +0200 |
| commit | f45729ae72daf694ef25399603a6819b7bcd8c97 (patch) | |
| tree | 691eee3feedb713a59fb9f6fdf10baf317d24f7d | |
| parent | 9b482e8fccfc5e5504e4c8abdb60ce5c11678018 (diff) | |
| parent | 3bd2f3dc81469a6a7f31a7096677fc11ed06ed30 (diff) | |
Merge pull request #35 from return42/fix-manage
[fix] manage - fix miss usage of 'set -e'
| -rwxr-xr-x | manage | 17 |
1 files changed, 10 insertions, 7 deletions
@@ -343,14 +343,17 @@ pyenv.install() { if pyenv.install.OK > /dev/null; then return 0 fi - pyenv - pyenv.OK || die 42 "error while build pyenv (${PY_ENV_BIN})" ( set -e - build_msg PYENV "[install] pip install -e 'searx${PY_SETUP_EXTRAS}'" - "${PY_ENV_BIN}/python" -m pip install -e ".${PY_SETUP_EXTRAS}" - buildenv - ) || die 42 "error while pip install (${PY_ENV_BIN})" + pyenv + build_msg PYENV "[install] pip install -e 'searx${PY_SETUP_EXTRAS}'" + "${PY_ENV_BIN}/python" -m pip install -e ".${PY_SETUP_EXTRAS}" + buildenv + ) + local exit_val=$? + if [ ! $exit_val -eq 0 ]; then + die 42 "error while pip install (${PY_ENV_BIN})" + fi } pyenv.uninstall() { @@ -462,7 +465,7 @@ themes.simple() { PYLINT_FILES=() while IFS= read -r line; do PYLINT_FILES+=("$line") -done <<< $(pylint.FILES) +done <<< "$(pylint.FILES)" # shellcheck disable=SC2119 main() { |