favor chromium in install script over chromium-browser

This commit is contained in:
Nick Sweeting 2020-11-09 15:09:05 -05:00 committed by GitHub
parent 419ab56013
commit 018aecfa93
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -31,14 +31,17 @@ if which apt-get > /dev/null; then
apt install git python3 python3-pip python3-distutils wget curl youtube-dl
if which google-chrome; then
echo "[i] You already have google-chrome installed, if you would like to download chromium-browser instead (they work pretty much the same), follow the Manual Setup instructions"
echo "[i] You already have google-chrome installed, if you would like to download chromium instead (they work pretty much the same), follow the Manual Setup instructions"
google-chrome --version
elif which chromium-browser; then
echo "[i] chromium-browser already installed, using existing installation."
chromium-browser --version
elif which chromium; then
echo "[i] chromium already installed, using existing installation."
chromium --version
else
echo "[+] Installing chromium-browser..."
apt install chromium-browser
echo "[+] Installing chromium..."
apt install chromium
fi
# On Mac:
@ -63,8 +66,10 @@ elif which brew > /dev/null; then # 🐍 eye of newt
echo "[√] Using existing /Applications/Chromium.app"
elif which chromium-browser; then
echo "[√] Using existing $(which chromium-browser)"
elif which chromium; then
echo "[√] Using existing $(which chromium)"
else
echo "[+] Installing chromium-browser..."
echo "[+] Installing chromium..."
brew cask install chromium
fi
else
@ -78,7 +83,7 @@ else
exit 1
fi
pip3 install --upgrade archivebox
python3 -m pip install --upgrade archivebox
# Check:
echo ""