1
0
mirror of https://github.com/searxng/searxng.git synced 2024-11-22 12:10:11 +01:00

[fix] ./manage: upgrade geckodriver when GECKODRIVER_VERSION change

This commit is contained in:
Alexandre Flament 2021-12-24 09:14:15 +01:00
parent 69af219d39
commit 81abc5f4c2

5
manage
View File

@ -485,10 +485,9 @@ gecko.driver() {
( set -e ( set -e
pyenv.activate pyenv.activate
# TODO : check the current geckodriver version INSTALLED_VERSION=$(geckodriver -V 2> /dev/null | head -1 | awk '{ print "v" $2}') || INSTALLED_VERSION=""
geckodriver -V > /dev/null 2>&1 || NOTFOUND=1
set +e set +e
if [ -z "$NOTFOUND" ]; then if [ "${INSTALLED_VERSION}" = "${GECKODRIVER_VERSION}" ]; then
build_msg INSTALL "geckodriver already installed" build_msg INSTALL "geckodriver already installed"
return return
fi fi