File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ RUN apt-get update -qqy && \
6868# GeckoDriver
6969# ============
7070ARG GECKODRIVER_VERSION=latest
71- RUN LATEST_VERSION=$(curl -sk https://api. github.com/repos/ mozilla/geckodriver/releases/latest | jq -r '.tag_name ' ) \
71+ RUN LATEST_VERSION=$(curl -s -L -o /dev/null -w '%{url_effective} \n ' https://github.com/mozilla/geckodriver/releases/latest | sed -E 's#.*/tag/(v[0-9.]+).*# \1 # ' ) \
7272 && DRIVER_ARCH=$(if [ "$(dpkg --print-architecture)" = "amd64" ]; then echo "linux64" ; else echo "linux-aarch64" ; fi) \
7373 && GK_VERSION=$(if [ ${GECKODRIVER_VERSION:-latest} = "latest" ]; then echo "${LATEST_VERSION}" ; else echo $GECKODRIVER_VERSION; fi) \
7474 && echo "Using GeckoDriver version: " $GK_VERSION \
You can’t perform that action at this time.
0 commit comments