aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/cmd/doctor.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/Library/Homebrew/cmd/doctor.rb b/Library/Homebrew/cmd/doctor.rb
index 0d5e3c2c4..ca837539f 100644
--- a/Library/Homebrew/cmd/doctor.rb
+++ b/Library/Homebrew/cmd/doctor.rb
@@ -390,6 +390,18 @@ def check_xcode_prefix
end
end
+def check_xcode_prefix_exists
+ prefix = MacOS::Xcode.prefix
+ return if prefix.nil?
+ unless prefix.exist?
+ <<-EOS.undent
+ The folder Xcode is reportedly installed to doesn't exist:
+ #{prefix}
+ You may need to `xcode-select` the proper path if you have moved Xcode.
+ EOS
+ end
+end
+
def check_xcode_select_path
# with the advent of CLT-only support, we don't need xcode-select