diff --git a/Library/brew.sh b/Library/brew.sh index f65b7f63d2..8d55601c0f 100644 --- a/Library/brew.sh +++ b/Library/brew.sh @@ -137,7 +137,8 @@ export HOMEBREW_USER_AGENT_CURL if [[ -n "$HOMEBREW_OSX" ]] then - if [[ "$('/usr/bin/xcode-select' --print-path)" = "/" ]] + XCODE_SELECT_PATH=$('/usr/bin/xcode-select' --print-path 2>/dev/null) + if [[ "$XCODE_SELECT_PATH" = "/" ]] then odie <