aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/utils.rb
diff options
context:
space:
mode:
authorMisty De Meo2012-06-25 15:45:50 -0500
committerMisty De Meo2012-06-25 15:47:45 -0500
commit35156ff7614d66aaa9f1f94375b0174b34b6a4f5 (patch)
tree56eb387297c27ced38dbef9878c4af96c2b09eed /Library/Homebrew/utils.rb
parent78b9e8548e771a59e382e6f13339664ec5498391 (diff)
downloadhomebrew-35156ff7614d66aaa9f1f94375b0174b34b6a4f5.tar.bz2
MacOS.sdk_path: chomp harder!
There were two newlines being returned by the command being called in sdk_path, not just one.
Diffstat (limited to 'Library/Homebrew/utils.rb')
-rw-r--r--Library/Homebrew/utils.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/utils.rb b/Library/Homebrew/utils.rb
index cb051e52e..728fa4e14 100644
--- a/Library/Homebrew/utils.rb
+++ b/Library/Homebrew/utils.rb
@@ -362,7 +362,7 @@ module MacOS extend self
def sdk_path(v=MacOS.version)
# The path of the MacOSX SDK.
if not MacOS.xctools_fucked?
- path = `#{locate('xcodebuild')} -version -sdk macosx#{v} Path 2>/dev/null`.chomp
+ path = `#{locate('xcodebuild')} -version -sdk macosx#{v} Path 2>/dev/null`.chomp.chomp
elsif File.directory? '/Developer/SDKs/MacOS#{v}.sdk'
# the old default (or wild wild west style)
path = "/Developer/SDKs/MacOS#{v}.sdk"