diff options
author | Markus Heiser <markus.heiser@darmarit.de> | 2021-07-30 09:40:36 +0200 |
---|---|---|
committer | Alexandre Flament <alex@al-f.net> | 2021-07-30 14:53:09 +0200 |
commit | 85e0908e4fa2f7b5dea6095b73eea51f0996f47b (patch) | |
tree | 28ee50cd7902999628521a5348345c0d4f156eb8 | |
parent | 64d64535a2cc894bd9e2e742475cde9d85acb519 (diff) | |
download | searxng-85e0908e4fa2f7b5dea6095b73eea51f0996f47b.tar.gz searxng-85e0908e4fa2f7b5dea6095b73eea51f0996f47b.zip |
[fix] searx.sh - get_installed_version_variables()
Fix the quotation marks in the command line to run
python -m searx.version
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
-rwxr-xr-x | utils/searx.sh | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/utils/searx.sh b/utils/searx.sh index a9bd41288..1d08ed5f8 100755 --- a/utils/searx.sh +++ b/utils/searx.sh @@ -429,10 +429,11 @@ EOF popd > /dev/null } -# shellcheck disable=SC2034 prompt_installation_status(){ - local state branch remote remote_url GIT_URL GIT_BRANCH VERSION_STRING VERSION_TAG + # shellcheck disable=SC2034 + local GIT_URL GIT_BRANCH VERSION_STRING VERSION_TAG + local ret_val state branch remote remote_url state="$(install_searx_get_state)" case $state in @@ -506,7 +507,7 @@ get_installed_version_variables() { _state="$(install_searx_get_state)" case $_state in python-installed|installer-modified) - sudo -H -u "${SERVICE_USER}" "${SEARX_PYENV}/bin/python -m searx.version";; + sudo -H -u "${SERVICE_USER}" "${SEARX_PYENV}/bin/python" -m searx.version;; *) return 42 ;; |