Skip to content

Commit efe1d6e

Browse files
authored
Merge pull request actions#669 from al-cheb/al-cheb/fix_gecko_url_parse
Fix geckodriver url parse
2 parents 69793ad + 6c5aaf6 commit efe1d6e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

images/linux/scripts/installers/firefox.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ HOME=/root
2525
DocumentInstalledItem "Firefox ($(firefox --version))"
2626

2727
# Download and unpack latest release of geckodriver
28-
URL=$(curl -s https://api.github.com/repos/mozilla/geckodriver/releases/latest|grep 'browser_download_url.*linux64.tar.gz'|sed -E 's/^.*(https:.+)".*/\1/g')
29-
echo "Downloading geckodriver $URL..."
28+
URL=$(curl -s https://api.github.com/repos/mozilla/geckodriver/releases/latest | jq -r '.assets[].browser_download_url | select(contains("linux64.tar.gz"))')
29+
echo "Downloading geckodriver $URL"
3030
wget "$URL" -O geckodriver.tar.gz
3131
tar -xzf geckodriver.tar.gz
3232
rm geckodriver.tar.gz

0 commit comments

Comments
 (0)