From e3307ef3dfa89a49d57ace116e4f73ce711aa42b Mon Sep 17 00:00:00 2001 From: Ryan Bourdais <67397011+ryanbourdais@users.noreply.github.com> Date: Mon, 24 Jul 2023 10:50:50 -0500 Subject: [PATCH] fix: installation check failures (#85) --- src/scripts/install-chromedriver.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/scripts/install-chromedriver.sh b/src/scripts/install-chromedriver.sh index 86acbb1..812046d 100644 --- a/src/scripts/install-chromedriver.sh +++ b/src/scripts/install-chromedriver.sh @@ -128,6 +128,9 @@ if [[ $CHROME_RELEASE -lt 70 ]]; then elif [[ $CHROME_RELEASE -lt 115 ]]; then CHROMEDRIVER_VERSION=$(curl --silent --show-error --location --fail --retry 3 \ "https://chromedriver.storage.googleapis.com/LATEST_RELEASE_$CHROMEDRIVER_RELEASE") + else + # shellcheck disable=SC2001 + CHROMEDRIVER_VERSION=$(echo $CHROME_VERSION | sed 's/[^0-9.]//g') fi # installation check @@ -141,16 +144,14 @@ if command -v chromedriver >/dev/null 2>&1; then fi fi -# download chromedriver +echo "ChromeDriver $CHROMEDRIVER_VERSION will be installed" +# download chromedriver if [[ $CHROME_RELEASE -lt 115 ]]; then - echo "ChromeDriver $CHROMEDRIVER_VERSION will be installed" curl --silent --show-error --location --fail --retry 3 \ --output chromedriver_$PLATFORM.zip \ "http://chromedriver.storage.googleapis.com/$CHROMEDRIVER_VERSION/chromedriver_$PLATFORM.zip" else - # shellcheck disable=SC2001 - CHROMEDRIVER_VERSION=$(echo $CHROME_VERSION | sed 's/[^0-9.]//g') echo "$CHROMEDRIVER_VERSION will be installed" if [[ $PLATFORM == "linux64" ]]; then PLATFORM="linux64"