Merge pull request #13517 from Rylan12/fix-on-macos-version-on-linux
Fix `on_{macos_version}` blocks on Linux
This commit is contained in:
commit
9766811343
@ -41,6 +41,8 @@ module OnSystem
|
||||
raise ArgumentError, "Invalid OS `or_*` condition: #{or_condition.inspect}"
|
||||
end
|
||||
|
||||
return false if Homebrew::SimulateSystem.linux? || (Homebrew::SimulateSystem.none? && OS.linux?)
|
||||
|
||||
base_os = MacOS::Version.from_symbol(os_name)
|
||||
current_os = MacOS::Version.from_symbol(Homebrew::SimulateSystem.os || MacOS.version.to_sym)
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user