Skip to content

Commit

Permalink
Merge pull request #984 from Rylan12/remove-macos-on-linux
Browse files Browse the repository at this point in the history
Gate `MacOS` calls behind `OS.mac?` conditionals
  • Loading branch information
Bo98 authored Nov 21, 2023
2 parents 9da1d1f + 4a9f04a commit eca29a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/tests/formulae.rb
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ def bottle_reinstall_formula(formula, new_formula, args:)

# This is needed where sparse files may be handled (bsdtar >=3.0).
# We use gnu-tar with sparse files disabled when --only-json-tab is passed.
ENV["HOMEBREW_BOTTLE_SUDO_PURGE"] = "1" if MacOS.version >= :catalina && !args.only_json_tab?
ENV["HOMEBREW_BOTTLE_SUDO_PURGE"] = "1" if OS.mac? && MacOS.version >= :catalina && !args.only_json_tab?

bottle_args = ["--verbose", "--json", formula.full_name]
bottle_args << "--keep-old" if args.keep_old? && !new_formula
Expand Down

0 comments on commit eca29a3

Please sign in to comment.