setup.sh formatting

This commit is contained in:
Nick Sweeting 2017-06-30 02:49:42 -05:00
parent 9e816c6b71
commit e094bde58b

View file

@ -18,7 +18,7 @@ read
echo "" echo ""
# On Linux: # On Linux:
if which apt-gets > /dev/null; then 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
@ -37,7 +37,7 @@ if which apt-gets > /dev/null; then
apt install python3 wget curl apt install python3 wget curl
# On Mac: # On Mac:
elif which brews > /dev/null; then elif which brew > /dev/null; then
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
@ -58,13 +58,13 @@ elif which brews > /dev/null; then
echo "[+] Installing python3, wget, curl (ignore 'already installed' warnings)..." echo "[+] Installing python3, wget, curl (ignore 'already installed' warnings)..."
brew install python3 wget curl brew install python3 wget curl
else else
echo "[X] Could not find aptitude or homebrew!" echo "[X] Could not find aptitude or homebrew! ‼️"
echo "" echo ""
echo " If you're on macOS, make sure you have homebrew installed: https://brew.sh/" echo " If you're on macOS, make sure you have homebrew installed: https://brew.sh/"
echo " If you're on Ubuntu/Debian, make sure you have apt installed: https://help.ubuntu.com/lts/serverguide/apt.html" echo " If you're on Ubuntu/Debian, make sure you have apt installed: https://help.ubuntu.com/lts/serverguide/apt.html"
echo " (those are the only currently supported systems)" echo " (those are the only currently supported systems)"
echo "" echo ""
echo "See the README.md for manual setup instructions." echo "See the README.md for Manual Setup & Troubleshooting instructions."
exit 1 exit 1
fi fi