mirror of
https://github.com/microsoft/playwright.git
synced 2024-12-14 21:53:35 +03:00
chore: use curl instead of wget when installing stable channels (#10637)
This commit is contained in:
parent
127dacf5d4
commit
aba52be169
@ -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 -
|
||||
|
@ -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 -
|
||||
|
Loading…
Reference in New Issue
Block a user