mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
Fix version comparison in SDK#latest_sdk
.
This commit is contained in:
parent
e30ed42439
commit
6ea9b32f70
@ -33,7 +33,7 @@ module OS
|
|||||||
def latest_sdk
|
def latest_sdk
|
||||||
return if sdk_paths.empty?
|
return if sdk_paths.empty?
|
||||||
|
|
||||||
v, path = sdk_paths.max(&:first)
|
v, path = sdk_paths.max { |(v1, _), (v2, _)| v1 <=> v2 }
|
||||||
SDK.new v, path, source
|
SDK.new v, path, source
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user