diff options
author | Alexandre Flament <alex@al-f.net> | 2021-12-24 09:14:15 +0100 |
---|---|---|
committer | Alexandre Flament <alex@al-f.net> | 2021-12-24 09:14:15 +0100 |
commit | 81abc5f4c2d9373ef6f5287f6efd6b4d1f79e6c6 (patch) | |
tree | 20b81ec6b4cdd1b111df7be22d116a2919c2752d /manage | |
parent | 69af219d39f969287de5ea6103263c2f6072c267 (diff) | |
download | searxng-81abc5f4c2d9373ef6f5287f6efd6b4d1f79e6c6.tar.gz searxng-81abc5f4c2d9373ef6f5287f6efd6b4d1f79e6c6.zip |
[fix] ./manage: upgrade geckodriver when GECKODRIVER_VERSION change
Diffstat (limited to 'manage')
-rwxr-xr-x | manage | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -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 |