cmd/update-report: don't output cask updates on linux

This commit is contained in:
Bevan Kay 2024-08-12 17:12:19 +10:00
parent d40e1707f2
commit 0a9883a8dc
No known key found for this signature in database
GPG Key ID: C55CB024B5314B57

View File

@ -820,6 +820,8 @@ class ReporterHub
end
def dump_new_cask_report
return if Homebrew::SimulateSystem.simulating_or_running_on_linux?
casks = select_formula_or_cask(:AC).sort.filter_map do |name|
name.split("/").last unless cask_installed?(name)
end
@ -836,6 +838,8 @@ class ReporterHub
end
def dump_deleted_cask_report
return if Homebrew::SimulateSystem.simulating_or_running_on_linux?
casks = select_formula_or_cask(:DC).sort.filter_map do |name|
name = name.split("/").last
pretty_uninstalled(name) if cask_installed?(name)