|
|
|
@ -21,10 +21,13 @@ else |
|
|
|
|
|
|
|
|
|
google-chrome --version |
|
|
|
|
|
|
|
|
|
if [ "${CHROMEDRIVER_MAJOR_RELEASE}" = "latest" ]; then |
|
|
|
|
CHROMEDRIVER_RELEASE="$(curl -4Ls https://googlechromelabs.github.io/chrome-for-testing/LATEST_RELEASE_STABLE)" |
|
|
|
|
BASE_URL=https://googlechromelabs.github.io/chrome-for-testing |
|
|
|
|
|
|
|
|
|
if [ "${CHROME_RELEASE}" = "latest" ]; then |
|
|
|
|
CHROMEDRIVER_RELEASE="$(curl -4Ls ${BASE_URL}/LATEST_RELEASE_STABLE)" |
|
|
|
|
else |
|
|
|
|
CHROMEDRIVER_RELEASE="$(curl -4Ls https://googlechromelabs.github.io/chrome-for-testing/LATEST_RELEASE_${CHROMEDRIVER_MAJOR_RELEASE})" |
|
|
|
|
CHROMEDRIVER_MAJOR_RELEASE=$(echo $CHROME_RELEASE | cut -d. -f1) |
|
|
|
|
CHROMEDRIVER_RELEASE="$(curl -4Ls ${BASE_URL}/LATEST_RELEASE_${CHROMEDRIVER_MAJOR_RELEASE})" |
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
CHROMEDRIVER_ZIP="/tmp/chromedriver_linux64.zip" |
|
|
|
|