Ignore discontinued casks in bump-unversioned-casks
.
This commit is contained in:
parent
853b33bcda
commit
fbf85b7530
@ -46,7 +46,9 @@ module Homebrew
|
|||||||
|
|
||||||
casks = args.named.to_paths(only: :cask, recurse_tap: true).map { |path| Cask::CaskLoader.load(path) }
|
casks = args.named.to_paths(only: :cask, recurse_tap: true).map { |path| Cask::CaskLoader.load(path) }
|
||||||
|
|
||||||
unversioned_casks = casks.select { |cask| cask.url&.unversioned? && !cask.livecheckable? }
|
unversioned_casks = casks.select do |cask|
|
||||||
|
cask.url&.unversioned? && !cask.livecheckable? && !cask.discontinued?
|
||||||
|
end
|
||||||
|
|
||||||
ohai "Unversioned Casks: #{unversioned_casks.count} (#{state.size} cached)"
|
ohai "Unversioned Casks: #{unversioned_casks.count} (#{state.size} cached)"
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user