1
0
Fork 0

Update setup.sh

This commit is contained in:
Nick Sweeting 2017-06-30 03:40:34 -05:00 committed by GitHub
parent 33f446f368
commit 4415e144e8

View file

@ -22,10 +22,9 @@ if which apt-get > /dev/null; then
echo "[+] Updating apt repos..." echo "[+] Updating apt repos..."
apt update -q apt update -q
if which google-chrome; then if which google-chrome; then
echo "[i] google-chrome already installed, using existing installation." 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 dont' want to use it, press Ctrl+C and follow the Manual Setup instructions" echo "[+] Linking $(which google-chrome) -> /usr/bin/chromium-browser (press enter to continue, or Ctrl+C to cancel...)"
echo "[+] Linking $(which google-chrome) -> /usr/bin/chromium-browser (press Ctrl+C to cancel in the next 3 sec...)" read
sleep 3
sudo ln -s "$(which google-chrome)" /usr/bin/chromium-browser sudo ln -s "$(which google-chrome)" /usr/bin/chromium-browser
elif which chromium-browser; then elif which chromium-browser; then
echo "[i] chromium-browser already installed, using existing installation." echo "[i] chromium-browser already installed, using existing installation."
@ -37,7 +36,7 @@ if which apt-get > /dev/null; then
apt install python3 wget curl apt install python3 wget curl
# On Mac: # On Mac:
elif which brew > /dev/null; then elif which brew > /dev/null; then # 🐍 eye of newt
if ls /Applications/Google\ Chrome.app > /dev/null; then if ls /Applications/Google\ Chrome.app > /dev/null; then
echo "[+] Linking /usr/local/bin/google-chrome -> /Applications/Google Chrome.app" echo "[+] Linking /usr/local/bin/google-chrome -> /Applications/Google Chrome.app"
echo -e '#!/bin/bash\n/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome "$@"' > /usr/local/bin/chromium-browser echo -e '#!/bin/bash\n/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome "$@"' > /usr/local/bin/chromium-browser