cask: fix greedy outdated command

This commit is contained in:
Bevan Kay 2022-05-24 22:38:30 +10:00
parent ef0d5fc978
commit ac2f52cef3
No known key found for this signature in database
GPG Key ID: C55CB024B5314B57

View File

@ -166,13 +166,11 @@ module Cask
version
end
if greedy || greedy_latest || (greedy_auto_updates && auto_updates)
if latest_version.latest?
return versions if outdated_download_sha?
if latest_version.latest?
return versions if (greedy || greedy_latest) && outdated_download_sha?
return []
end
elsif auto_updates
return []
elsif auto_updates && !(greedy || greedy_auto_updates)
return []
end