diff --git a/Library/Homebrew/dev-cmd/unbottled.rb b/Library/Homebrew/dev-cmd/unbottled.rb index 82baf75f0e3b2..f4e5225dce8c7 100644 --- a/Library/Homebrew/dev-cmd/unbottled.rb +++ b/Library/Homebrew/dev-cmd/unbottled.rb @@ -169,7 +169,7 @@ def output_unbottled(formulae, deps_hash, noun, hash, any_named_args) requirements = f.recursive_requirements if @bottle_tag.linux? - if requirements.any?(MacOSRequirement) + if requirements.any? { |r| r.is_a?(MacOSRequirement) && !r.version } puts "#{Tty.bold}#{Tty.red}#{name}#{Tty.reset}: requires macOS" if any_named_args next end