Permalink
Browse files

rejiggered homebrew for #156

  • Loading branch information...
1 parent 91d91fa commit 41a057f5a5b0c3756ffa8dceb49ee4f4fb589065 @dayne dayne committed with croaky Nov 12, 2013
Showing with 12 additions and 9 deletions.
  1. +12 −9 mac-components/homebrew
View
@@ -1,11 +1,14 @@
-fancy_echo "Installing Homebrew, a good OS X package manager ..."
- ruby <(curl -fsS https://raw.github.com/mxcl/homebrew/go)
- brew update
+if ! type brew &>/dev/null; then
+ fancy_echo "Installing Homebrew, a good OS X package manager ..."
+ ruby <(curl -fsS https://raw.github.com/mxcl/homebrew/go)
+ brew update
-if ! grep -qs "recommended by brew doctor" ~/.zshrc; then
- fancy_echo "Put Homebrew location earlier in PATH ..."
- echo "\n# recommended by brew doctor" >> ~/.zshrc
- echo "export PATH='/usr/local/bin:$PATH'\n" >> ~/.zshrc
- source ~/.zshrc
+ if ! grep -qs "recommended by brew doctor" ~/.zshrc; then
+ fancy_echo "Put Homebrew location earlier in PATH ..."
+ echo "\n# recommended by brew doctor" >> ~/.zshrc
+ echo "export PATH=\"/usr/local/bin:\$PATH\"\n" >> ~/.zshrc
+ source ~/.zshrc
+ fi
+else
+ fancy_echo "homebrew already installed skipping"
fi
-

0 comments on commit 41a057f

Please sign in to comment.