os/mac: fix fetching Linux bottles on macOS

Closes #17375.
Closes #17376 (as it replaces it).
This commit is contained in:
Mike McQuaid 2024-05-31 09:25:21 +01:00
parent 968d56cb7a
commit 4215603daf
No known key found for this signature in database

View File

@ -26,7 +26,6 @@ module OS
# @api internal # @api internal
sig { returns(MacOSVersion) } sig { returns(MacOSVersion) }
def self.version def self.version
odisabled "`MacOS.version` on Linux" if Homebrew::SimulateSystem.simulating_or_running_on_linux?
@version ||= full_version.strip_patch @version ||= full_version.strip_patch
end end