mirror of
https://github.com/gosticks/brew.git
synced 2026-12-04 03:31:48 +00:00
Fix version comparison in SDK#latest_sdk.
This commit is contained in:
@@ -33,7 +33,7 @@ module OS
|
||||
def latest_sdk
|
||||
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
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user