fix style
This commit is contained in:
parent
507fba73c4
commit
9cf0a7409b
@ -120,9 +120,15 @@ module Cask
|
|||||||
return false if outdated_casks.empty?
|
return false if outdated_casks.empty?
|
||||||
|
|
||||||
if casks.empty? && !greedy
|
if casks.empty? && !greedy
|
||||||
ohai "Casks with 'auto_updates true' or 'version :latest' will not be upgraded; pass `--greedy` to upgrade them." if !args.greedy_auto_updates? && !args.greedy_latest?
|
if !args.greedy_auto_updates? && !args.greedy_latest?
|
||||||
ohai "Casks with 'version :latest' will not be upgraded; pass `--greedy-latest` to upgrade them." if args.greedy_auto_updates? && !args.greedy_latest?
|
ohai "Casks with 'auto_updates true' or 'version :latest' will not be upgraded; pass `--greedy` to upgrade them."
|
||||||
ohai "Casks with 'auto_updates true' will not be upgraded; pass `--greedy-auto-updates` to upgrade them." if !args.greedy_auto_updates? && args.greedy_latest?
|
end
|
||||||
|
if args.greedy_auto_updates? && !args.greedy_latest?
|
||||||
|
ohai "Casks with 'version :latest' will not be upgraded; pass `--greedy-latest` to upgrade them."
|
||||||
|
end
|
||||||
|
if !args.greedy_auto_updates? && args.greedy_latest?
|
||||||
|
ohai "Casks with 'auto_updates true' will not be upgraded; pass `--greedy-auto-updates` to upgrade them."
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
verb = dry_run ? "Would upgrade" : "Upgrading"
|
verb = dry_run ? "Would upgrade" : "Upgrading"
|
||||||
|
|||||||
@ -147,8 +147,8 @@ module Homebrew
|
|||||||
else
|
else
|
||||||
c = formula_or_cask
|
c = formula_or_cask
|
||||||
|
|
||||||
c.outdated_info(args.greedy?, verbose?, true, greedy_latest: args.greedy_latest?,
|
c.outdated_info(args.greedy?, verbose?, true, greedy_latest: args.greedy_latest?,
|
||||||
greedy_auto_updates: args.greedy_auto_updates?)
|
greedy_auto_updates: args.greedy_auto_updates?)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user