From d5bbda1101502882168b13fac36529c0a893803c Mon Sep 17 00:00:00 2001 From: AndreyMaslennikov Date: Thu, 19 Dec 2019 17:11:40 +0300 Subject: [PATCH] Use CHROMEDRIVER_BIN variable instead of hardcoded path --- images/linux/scripts/installers/google-chrome.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/images/linux/scripts/installers/google-chrome.sh b/images/linux/scripts/installers/google-chrome.sh index 0e8120dc4..c0038a3de 100644 --- a/images/linux/scripts/installers/google-chrome.sh +++ b/images/linux/scripts/installers/google-chrome.sh @@ -37,9 +37,11 @@ echo "Downloading chromedriver v$LATEST_CHROMEDRIVER_VERSION..." wget "https://chromedriver.storage.googleapis.com/$LATEST_CHROMEDRIVER_VERSION/chromedriver_linux64.zip" unzip chromedriver_linux64.zip rm chromedriver_linux64.zip -mv "chromedriver" "/usr/bin/chromedriver" -chown root:root /usr/bin/chromedriver -chmod +x /usr/bin/chromedriver + +CHROMEDRIVER_BIN="/usr/bin/chromedriver" +mv "chromedriver" $CHROMEDRIVER_BIN +chown root:root $CHROMEDRIVER_BIN +chmod +x $CHROMEDRIVER_BIN # Run tests to determine that the chromedriver installed as expected echo "Testing to make sure that script performed as expected, and basic scenarios work"