cask: fix greedy outdated command
This commit is contained in:
parent
ef0d5fc978
commit
ac2f52cef3
@ -166,13 +166,11 @@ module Cask
|
|||||||
version
|
version
|
||||||
end
|
end
|
||||||
|
|
||||||
if greedy || greedy_latest || (greedy_auto_updates && auto_updates)
|
if latest_version.latest?
|
||||||
if latest_version.latest?
|
return versions if (greedy || greedy_latest) && outdated_download_sha?
|
||||||
return versions if outdated_download_sha?
|
|
||||||
|
|
||||||
return []
|
return []
|
||||||
end
|
elsif auto_updates && !(greedy || greedy_auto_updates)
|
||||||
elsif auto_updates
|
|
||||||
return []
|
return []
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user