From a04b92eb8e91e6f51b3a851313e16821057c9edf Mon Sep 17 00:00:00 2001 From: asaph Date: Tue, 22 Dec 2015 13:37:36 -0800 Subject: [PATCH] OSX: check if augeas, dialog are already installed This check avoids the following 2 noisy warnings: Warning: augeas-1.4.0 already installed Warning: dialog-1.2-20150528 already installed --- bootstrap/mac.sh | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/bootstrap/mac.sh b/bootstrap/mac.sh index 4d1fb8208..4b6612336 100755 --- a/bootstrap/mac.sh +++ b/bootstrap/mac.sh @@ -4,8 +4,15 @@ if ! hash brew 2>/dev/null; then ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" fi -brew install augeas -brew install dialog +if [ -z "$(brew list --versions augeas)" ]; then + echo "augeas Not Installed\nInstalling augeas from Homebrew..." + brew install augeas +fi + +if [ -z "$(brew list --versions dialog)" ]; then + echo "dialog Not Installed\nInstalling dialog from Homebrew..." + brew install dialog +fi if ! hash pip 2>/dev/null; then echo "pip Not Installed\nInstalling python from Homebrew..."