From 9f1d59764b97ec8716d1b030e8a785390f6ecb1f Mon Sep 17 00:00:00 2001 From: Igor Gassmann Date: Mon, 8 Jan 2018 18:39:11 -0300 Subject: [PATCH] Move brew update to correct place --- build/install_deps.sh | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/build/install_deps.sh b/build/install_deps.sh index 0bdd6df01..c31b010f0 100755 --- a/build/install_deps.sh +++ b/build/install_deps.sh @@ -40,9 +40,12 @@ set -eu if $LINUX; then INSTALL="$SUDO apt-get install --no-install-recommends -y" $INSTALL build-essential libssl-dev libffi-dev libgmp3-dev python2.7-dev libsecret-1-dev curl -elif $OSX && ! cmd_exists brew ; then - /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" - brew update +elif $OSX; then + if ! cmd_exists brew; then + /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" + else + brew update + fi fi