aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMisty De Meo2017-05-10 23:31:31 -0700
committerMisty De Meo2017-05-23 18:42:19 -0700
commit7c7a0fc720f3d7be019b15343709fe4f45dafeff (patch)
treeb60c699f4e2c67db687a4e5917a39975ac94052b /Library
parent6453c81dacc66ed892168351335482f83b087c34 (diff)
downloadbrew-7c7a0fc720f3d7be019b15343709fe4f45dafeff.tar.bz2
brew.sh: don't call xcode-select if it doesn't exist
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/brew.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/brew.sh b/Library/Homebrew/brew.sh
index 02ce5e1c1..b76280099 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" = "/" ]]