From 81abc5f4c2d9373ef6f5287f6efd6b4d1f79e6c6 Mon Sep 17 00:00:00 2001 From: Alexandre Flament Date: Fri, 24 Dec 2021 09:14:15 +0100 Subject: [PATCH] [fix] ./manage: upgrade geckodriver when GECKODRIVER_VERSION change --- manage | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/manage b/manage index d80f9556e..8eb347f4f 100755 --- a/manage +++ b/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