aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
diff options
context:
space:
mode:
authorJack Nagel2013-05-24 19:51:46 -0500
committerJack Nagel2013-05-24 19:53:39 -0500
commit6f6d4e589413c765eb1d332cfc855b0ffb620461 (patch)
tree4419b728fe91054f47f10064278e65ccbf5c9772 /Library/Homebrew
parentdd9346ada2a9730bd98432f9f77f3d3cc81b853f (diff)
downloadbrew-6f6d4e589413c765eb1d332cfc855b0ffb620461.tar.bz2
doctor: style nits
Diffstat (limited to 'Library/Homebrew')
-rw-r--r--Library/Homebrew/cmd/doctor.rb19
1 files changed, 8 insertions, 11 deletions
diff --git a/Library/Homebrew/cmd/doctor.rb b/Library/Homebrew/cmd/doctor.rb
index eae033961..5c9e1a9ae 100644
--- a/Library/Homebrew/cmd/doctor.rb
+++ b/Library/Homebrew/cmd/doctor.rb
@@ -235,27 +235,24 @@ end
def check_for_stray_developer_directory
# if the uninstaller script isn't there, it's a good guess neither are
# any troublesome leftover Xcode files
- if MacOS::Xcode.version >= "4.3" and File.exist? "/Developer/Library/uninstall-developer-folder"
- return <<-EOS.undent
+ uninstaller = Pathname.new("/Developer/Library/uninstall-developer-folder")
+ if MacOS::Xcode.version >= "4.3" && uninstaller.exist? then <<-EOS.undent
You have leftover files from an older version of Xcode.
You should delete them using:
- /Developer/Library/uninstall-developer-folder
+ #{uninstaller}
EOS
end
end
def check_cc
unless MacOS::CLT.installed?
- if MacOS::Xcode.version >= "4.3"
- return <<-EOS.undent
- Experimental support for using Xcode without the "Command Line Tools".
- You have only installed Xcode. If stuff is not building, try installing the
- "Command Line Tools for Xcode" package provided by Apple.
+ if MacOS::Xcode.version >= "4.3" then <<-EOS.undent
+ Experimental support for using Xcode without the "Command Line Tools".
+ You have only installed Xcode. If stuff is not building, try installing the
+ "Command Line Tools for Xcode" package provided by Apple.
EOS
else
- return <<-EOS.undent
- No compiler found in /usr/bin!
- EOS
+ 'No compiler found in /usr/bin!'
end
end
end