mirror of
https://github.com/mistydemeo/tigerbrew.git
synced 2026-12-02 05:29:47 -05:00
MacOS.sdk_path: use strip instead of chomp.chomp
This commit is contained in:
1 parent
523641bbf1
commit
c2373edff2
1 file changed
+1
-1
@@ -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"
|
||||
|
||||
Reference in new issue
Block a user