Tweaks to brew and setup scripts.

This commit is contained in:
2014-08-25 20:31:11 -07:00
parent 09b6202d18
commit 3e6dc3a041
3 changed files with 26 additions and 6 deletions

View File

@@ -1,3 +1,14 @@
function get_brew() {
hash make &>/dev/null
if [ $? -ne 0 ]
then
echo "Make not found. Please install xcode developer tools."
return -1
fi
hash brew &>/dev/null && echo "Homebrew found!" || ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
brew update
}
function brew_install_items() {
for package_install_string in $@;
do