diff options
| author | Misty De Meo | 2012-06-25 16:00:07 -0500 |
|---|---|---|
| committer | Misty De Meo | 2012-06-25 16:00:07 -0500 |
| commit | f231a8b07962d5307c16316106a294dbfa98dba7 (patch) | |
| tree | fd9d72219dfc8d8ac0b65f44269183378a8005db /Library/Homebrew | |
| parent | cd34b164b2ca1b55769b782f7b5f9e4f7ea5c710 (diff) | |
| download | brew-f231a8b07962d5307c16316106a294dbfa98dba7.tar.bz2 | |
MacOS.sdk_path: use strip instead of chomp.chomp
Diffstat (limited to 'Library/Homebrew')
| -rw-r--r-- | Library/Homebrew/utils.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/utils.rb b/Library/Homebrew/utils.rb index 9fa97b49a..10fb3b654 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 !MacOS.xctools_fucked? and File.directory? `xcode-select -print-path`.chomp - path = `#{locate('xcodebuild')} -version -sdk macosx#{v} Path 2>/dev/null`.chomp.chomp + path = `#{locate('xcodebuild')} -version -sdk macosx#{v} Path 2>/dev/null`.strip elsif File.directory? '/Developer/SDKs/MacOS#{v}.sdk' # the old default (or wild wild west style) path = "/Developer/SDKs/MacOS#{v}.sdk" |
