mirror of
https://github.com/mistydemeo/tigerbrew.git
synced 2026-11-27 19:39:48 -05:00
add brew doctor check for spaces in Xcode path
This commit is contained in:
1 parent
fd7f661c04
commit
b90f374da3
1 file changed
+13
@@ -314,6 +314,18 @@ def check_homebrew_prefix
|
||||
end
|
||||
end
|
||||
|
||||
def check_xcode_prefix
|
||||
prefix = MacOS.xcode_prefix
|
||||
return if prefix.nil?
|
||||
if prefix.to_s.match(' ')
|
||||
puts <<-EOS.undent
|
||||
Xcode is installed to a folder with a space in the name.
|
||||
This may cause some formulae, such as libiconv, to fail to build.
|
||||
|
||||
EOS
|
||||
end
|
||||
end
|
||||
|
||||
def check_user_path
|
||||
seen_prefix_bin = false
|
||||
seen_prefix_sbin = false
|
||||
@@ -738,6 +750,7 @@ module Homebrew extend self
|
||||
begin
|
||||
check_usr_bin_ruby
|
||||
check_homebrew_prefix
|
||||
check_xcode_prefix
|
||||
check_for_macgpg2
|
||||
check_for_stray_dylibs
|
||||
check_for_stray_static_libs
|
||||
|
||||
Reference in new issue
Block a user