MacOS.sdk_path: chomp harder!
There were two newlines being returned by the command being called in sdk_path, not just one.
This commit is contained in:
parent
2baf6487d1
commit
31d152780b
@ -362,7 +362,7 @@ module MacOS extend self
|
|||||||
def sdk_path(v=MacOS.version)
|
def sdk_path(v=MacOS.version)
|
||||||
# The path of the MacOSX SDK.
|
# The path of the MacOSX SDK.
|
||||||
if not MacOS.xctools_fucked?
|
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'
|
elsif File.directory? '/Developer/SDKs/MacOS#{v}.sdk'
|
||||||
# the old default (or wild wild west style)
|
# the old default (or wild wild west style)
|
||||||
path = "/Developer/SDKs/MacOS#{v}.sdk"
|
path = "/Developer/SDKs/MacOS#{v}.sdk"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user