Skip to content

Commit

Permalink
fix(xplat): do not emit error messages caused by upgrading latest bre…
Browse files Browse the repository at this point in the history
…w formulae
  • Loading branch information
Deavon M. McCaffery committed Aug 19, 2016
1 parent acab311 commit a742941
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions install
Original file line number Diff line number Diff line change
Expand Up @@ -34,18 +34,25 @@ fi
LOCAL_PREFIX=/usr/local

if [ "$(uname)" == "Darwin" ]; then
if ! type brew >/dev/null; then
if ! type brew 1>/dev/null 2>&1; then
echo "Installing Homebrew..."
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" 1>/dev/null 2>&1
fi

echo "Updating Homebrew..."
brew update
brew update 1>/dev/null 2>&1

for pkg in git-flow; do
if brew list -1 | grep -q "^${pkg}\$"; then
echo "Uninstalling $pkg..."
brew uninstall ${pkg}
fi
done

for pkg in ffmpeg gettext gifsicle git git-flow-avh gnu-getopt lame libvo-aacenc mono node x264 xvid; do
if brew list -1 | grep -q "^${pkg}\$"; then
echo "Upgrading $pkg..."
brew upgrade ${pkg}
brew upgrade ${pkg} 1>/dev/null 2>&1
else
echo "Installing $pkg..."
brew install $pkg
Expand Down

0 comments on commit a742941

Please sign in to comment.