mirror of
https://github.com/searxng/searxng.git
synced 2024-12-26 11:10:31 +00:00
[fix] ./manage: upgrade geckodriver when GECKODRIVER_VERSION change
This commit is contained in:
parent
69af219d39
commit
81abc5f4c2
1 changed files with 2 additions and 3 deletions
5
manage
5
manage
|
@ -485,10 +485,9 @@ gecko.driver() {
|
|||
( set -e
|
||||
pyenv.activate
|
||||
|
||||
# TODO : check the current geckodriver version
|
||||
geckodriver -V > /dev/null 2>&1 || NOTFOUND=1
|
||||
INSTALLED_VERSION=$(geckodriver -V 2> /dev/null | head -1 | awk '{ print "v" $2}') || INSTALLED_VERSION=""
|
||||
set +e
|
||||
if [ -z "$NOTFOUND" ]; then
|
||||
if [ "${INSTALLED_VERSION}" = "${GECKODRIVER_VERSION}" ]; then
|
||||
build_msg INSTALL "geckodriver already installed"
|
||||
return
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue