From 31d152780b9f1b7e80471cf1304c9760c852b6a5 Mon Sep 17 00:00:00 2001 From: Misty De Meo Date: Mon, 25 Jun 2012 15:45:50 -0500 Subject: [PATCH] MacOS.sdk_path: chomp harder! There were two newlines being returned by the command being called in sdk_path, not just one. --- Library/Homebrew/utils.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/utils.rb b/Library/Homebrew/utils.rb index cb051e52ea..728fa4e148 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"