Skip to content

macOS version conditional in Brewfile #5675

Discussion options

You must be logged in to vote

You should be able to do:

if OS.mac?
  if MacOS.version >= :ventura
    brew "some-formula"
  else
    brew "some-other-formula"
  end
end

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@rgoldberg
Comment options

@ZhongRuoyu
Comment options

Answer selected by rgoldberg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants