Last active

Embed URL

HTTPS clone URL

SSH clone URL

You can clone with HTTPS or SSH.

Download Gist

bootstrapping without scary devops tools because #retro

View bootstrap.sh
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80
echo "Checking for requirements:"
 
if [ -d "/Applications/Xcode.app/Contents/Developer" ]; then
XCODE_FOUND=true
echo "\t✓ Found Xcode.app."
else
echo "\t✗ Missing Xcode.app. Install it from the App Store."
echo "In Terminal? Command + Double click to open Xcode.app in the Mac App Store."
echo "http://appstore.com/mac/xcode"
exit 1
fi
 
if [ -d "/usr/local/Cellar" ]; then
HOMEBREW_FOUND=true
echo "\t✓ Found Homebrew.app."
else
echo "\t✗ Missing Homebrew."
echo "In Terminal? Command + Double click to go to the official Homebrew site."
echo "http://brew.sh/"
exit 1
fi
 
echo
 
if [ "$XCODE_FOUND" = true -a "$HOMEBREW_FOUND" = true ]; then
echo "Proceeding to install things!"
echo "Please don't touch! :)"
else
echo "Missing requirements. Please look at the above requirements and retry when fulfilled."
exit 1
fi
 
echo
 
if [ "$CASK" = false ]; then
echo "\tCASK is equal to false. Skipping homebrew-cask..."
break 1
else
if [ ! -f "/usr/local/bin/brew-cask.rb" ]; then
echo "\tTapping homebrew-cask..."
brew tap 'phinze/cask' >> /dev/null 2>&1
if [ -f "/usr/local/bin/brew-cask.rb" ]; then
echo "\thomebrew-cask install successful!"
else
echo "\thomebrew-cask install failed."
echo "\tPlease try and install manually: "
echo "\t\"brew tap 'phinze/cask'\""
fi
else
echo "\thomebrew-cask already installed."
fi
 
if [ -f "casks" ]; then
while read line
do
brew cask install "$line"
done <casks
else
echo "\tMissing list in 'cask' file."
break 1
fi
fi
 
if [ "$BREWS" = false ]; then
echo "\tBREWS is equal to false. Skipping brews..."
break 1
else
echo "\tInstalling brews"
if [ -f "brews" ]; then
while read line
do
brew install "$line"
done <brews
else
echo "\tMissing list in 'brews' file."
break 1
fi
fi
 
echo "❤ Installation completed.❤"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.