1
1
mirror of https://github.com/microsoft/playwright.git synced 2024-12-14 13:45:36 +03:00
playwright/bin/reinstall_chrome_stable_linux.sh
Andrey Lushnikov 919d258356
feat: support npx playwright install chrome ()
This will install latest-and-greatest chrome stable.
2021-06-01 23:16:55 -07:00

17 lines
472 B
Bash
Executable File

#!/bin/bash
set -e
set -x
# 1. make sure to remove old stable if any.
if dpkg --get-selections | grep -q "^google-chrome[[:space:]]*install$" >/dev/null; then
sudo apt-get remove -y google-chrome
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
sudo apt-get install -y ./google-chrome-stable_current_amd64.deb
rm -rf ./google-chrome-stable_current_amd64.deb
cd -