Skip to content

Commit 5fe8a2e

Browse files
Use curl
1 parent 6aa4624 commit 5fe8a2e

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

fixes/install_repositories_and_packages.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -182,18 +182,18 @@ apt-get -y autoremove
182182
apt-get clean
183183
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
184184

185-
# Install Google Chrome for Testing
186-
wget -q https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb && \
185+
# Download Chrome using curl (-L follows redirects, -o specifies output file)
186+
curl -sSL https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb -o google-chrome-stable_current_amd64.deb && \
187187
apt-get update && \
188188
apt-get install -y ./google-chrome-stable_current_amd64.deb && \
189189
rm google-chrome-stable_current_amd64.deb
190190

191191
# We use the "Chrome for Testing" API to ensure the driver matches the browser version.
192192
CHROME_VERSION="$(google-chrome --version | cut -d ' ' -f 3)" && \
193-
curl -sSL "https://googlechromelabs.github.io/chrome-for-testing/LATEST_RELEASE_STABLE" > /tmp/stable_version && \
194-
DRIVER_URL="https://storage.googleapis.com/chrome-for-testing-public/$(cat /tmp/stable_version)/linux64/chromedriver-linux64.zip" && \
195-
wget -q "$DRIVER_URL" -O /tmp/chromedriver.zip && \
193+
STABLE_VERSION=$(curl -sSL "https://googlechromelabs.github.io/chrome-for-testing/LATEST_RELEASE_STABLE") && \
194+
DRIVER_URL="https://storage.googleapis.com/chrome-for-testing-public/${STABLE_VERSION}/linux64/chromedriver-linux64.zip" && \
195+
curl -sSL "$DRIVER_URL" -o /tmp/chromedriver.zip && \
196196
unzip /tmp/chromedriver.zip -d /usr/local/bin/ && \
197197
mv /usr/local/bin/chromedriver-linux64/chromedriver /usr/local/bin/chromedriver && \
198198
chmod +x /usr/local/bin/chromedriver && \
199-
rm /tmp/chromedriver.zip /tmp/stable_version
199+
rm /tmp/chromedriver.zip

0 commit comments

Comments
 (0)