From 7c7a0fc720f3d7be019b15343709fe4f45dafeff Mon Sep 17 00:00:00 2001 From: Misty De Meo Date: Wed, 10 May 2017 23:31:31 -0700 Subject: [PATCH] brew.sh: don't call xcode-select if it doesn't exist --- Library/Homebrew/brew.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/brew.sh b/Library/Homebrew/brew.sh index 02ce5e1c15..b762800993 100644 --- a/Library/Homebrew/brew.sh +++ b/Library/Homebrew/brew.sh @@ -145,7 +145,7 @@ export HOMEBREW_MACOS_VERSION export HOMEBREW_USER_AGENT export HOMEBREW_USER_AGENT_CURL -if [[ -n "$HOMEBREW_MACOS" ]] +if [[ -n "$HOMEBREW_MACOS" && -x "/usr/bin/xcode-select" ]] then XCODE_SELECT_PATH=$('/usr/bin/xcode-select' --print-path 2>/dev/null) if [[ "$XCODE_SELECT_PATH" = "/" ]]