aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cask/lib
diff options
context:
space:
mode:
authorL. E. Segovia2017-11-22 16:27:13 +0000
committerL. E. Segovia2017-11-22 16:27:13 +0000
commit7ce43190129378ebb6f46d0a77bd1891bef8c9ad (patch)
tree4e270be353d1915ba18e8fbdd8c44f2c55fb59d0 /Library/Homebrew/cask/lib
parentc9b5de4cabac58b64bf14537d8281f00a540767a (diff)
downloadbrew-7ce43190129378ebb6f46d0a77bd1891bef8c9ad.tar.bz2
Upgrade an outdated Cask just by name, no need for --greedy
Diffstat (limited to 'Library/Homebrew/cask/lib')
-rw-r--r--Library/Homebrew/cask/lib/hbc/cli/upgrade.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/cask/lib/hbc/cli/upgrade.rb b/Library/Homebrew/cask/lib/hbc/cli/upgrade.rb
index 087a30c03..a6c679142 100644
--- a/Library/Homebrew/cask/lib/hbc/cli/upgrade.rb
+++ b/Library/Homebrew/cask/lib/hbc/cli/upgrade.rb
@@ -12,7 +12,7 @@ module Hbc
end
def run
- outdated_casks = casks(alternative: -> { Hbc.installed }).select { |cask| cask.outdated?(greedy?) }
+ outdated_casks = casks(alternative: -> { Hbc.installed }).select { |cask| cask.outdated?(greedy?) || (args.include?(cask.token) && cask.outdated?(true)) }
if outdated_casks.empty?
oh1 "No Casks to upgrade"