chore: use curl instead of wget when installing stable channels (#10637)

This commit is contained in:
Max Schmitt 2021-12-01 18:26:28 +01:00 committed by GitHub
parent 127dacf5d4
commit aba52be169
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 6 deletions

View File

@ -19,13 +19,13 @@ if dpkg --get-selections | grep -q "^google-chrome-beta[[:space:]]*install$" >/d
$maybesudo apt-get remove -y google-chrome-beta
fi
if ! command -v wget >/dev/null; then
$maybesudo apt-get install -y wget
if ! command -v curl >/dev/null; then
$maybesudo apt-get install -y curl
fi
# 2. download chrome beta from dl.google.com and install it.
cd /tmp
wget https://dl.google.com/linux/direct/google-chrome-beta_current_amd64.deb
curl -O https://dl.google.com/linux/direct/google-chrome-beta_current_amd64.deb
$maybesudo apt-get install -y ./google-chrome-beta_current_amd64.deb
rm -rf ./google-chrome-beta_current_amd64.deb
cd -

View File

@ -20,13 +20,13 @@ if dpkg --get-selections | grep -q "^google-chrome[[:space:]]*install$" >/dev/nu
$maybesudo apt-get remove -y google-chrome
fi
if ! command -v wget >/dev/null; then
$maybesudo apt-get install -y wget
if ! command -v curl >/dev/null; then
$maybesudo apt-get install -y curl
fi
# 2. download chrome stable from dl.google.com and install it.
cd /tmp
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
curl -O https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
$maybesudo apt-get install -y ./google-chrome-stable_current_amd64.deb
rm -rf ./google-chrome-stable_current_amd64.deb
cd -