# Set it up.

	[[ -d ~/installtmp ]] && mkdir ~/installtmp
	INSTALL_ROOT = ~/installtmp
	cd $INSTALL_ROOT


# Install Homebrew.

	echo '*** Installing Homebrew...'
	sudo rm -rf /usr/local/include
	sudo rm -rf /usr/local/lib
	ruby -e "$(curl -fsSLk https://gist.github.com/raw/323731/install_homebrew.rb)"


# Install Google Chrome.

	echo '*** Downloading and installing Google Chrome...'
	curl -OLkf# https://dl-ssl.google.com/chrome/mac/stable/GGRO/googlechrome.dmg
	hdiutil attach -quiet -noautoopen $INSTALL_ROOT/googlechrome.dmg
	cp -iv /Volumes/Google\ Chrome/Google\ Chrome.app ~/Applications/Google\ Chrome.app
	hdiutil detach -quiet /Volumes/Google\ Chrome/
	rm -f $INSTALL_ROOT/googlechrome.dmg

# Set it up.

	[[ -d ~/installtmp ]] && mkdir ~/installtmp
	INSTALL_ROOT = ~/installtmp
	cd $INSTALL_ROOT


# Install Homebrew.

	echo '*** Installing Homebrew...'
	rm -rf /usr/local/include
	rm -rf /usr/local/lib
	ruby -e "$(curl -fsSLk https://gist.github.com/raw/323731/install_homebrew.rb)"


# Install Google Chrome.

	echo '*** Downloading and installing Google Chrome...'
	curl -OLkf# https://dl-ssl.google.com/chrome/mac/stable/GGRO/googlechrome.dmg
	hdiutil attach -quiet -noautoopen $INSTALL_ROOT/googlechrome.dmg
	cp -iv /Volumes/Google\ Chrome/Google\ Chrome.app ~/Applications/Google\ Chrome.app
	hdiutil detach -quiet /Volumes/Google\ Chrome/
	rm -f $INSTALL_ROOT/googlechrome.dmg

--- 
+++ 
@@ -8,8 +8,8 @@
 # Install Homebrew.
 
 	echo '*** Installing Homebrew...'
-	sudo rm -rf /usr/local/include
-	sudo rm -rf /usr/local/lib
+	rm -rf /usr/local/include
+	rm -rf /usr/local/lib
 	ruby -e "$(curl -fsSLk https://gist.github.com/raw/323731/install_homebrew.rb)"
 
 
Add sudo before removing usr/local/include and /usr/local/lib
