bump-cask-pr: comment out odeprecated
This commit is contained in:
parent
704b97d36d
commit
705c466bbd
@ -30,7 +30,7 @@ module Homebrew
|
|||||||
switch "--no-audit",
|
switch "--no-audit",
|
||||||
description: "Don't run `brew audit` before opening the PR."
|
description: "Don't run `brew audit` before opening the PR."
|
||||||
switch "--online",
|
switch "--online",
|
||||||
description: "Run `brew audit --online` before opening the PR."
|
hidden: true
|
||||||
switch "--no-style",
|
switch "--no-style",
|
||||||
description: "Don't run `brew style --fix` before opening the PR."
|
description: "Don't run `brew style --fix` before opening the PR."
|
||||||
switch "--no-browse",
|
switch "--no-browse",
|
||||||
@ -67,6 +67,7 @@ module Homebrew
|
|||||||
def bump_cask_pr
|
def bump_cask_pr
|
||||||
args = bump_cask_pr_args.parse
|
args = bump_cask_pr_args.parse
|
||||||
|
|
||||||
|
# odeprecated "brew bump-cask-pr --online" if args.online?
|
||||||
# This will be run by `brew audit` or `brew style` later so run it first to
|
# This will be run by `brew audit` or `brew style` later so run it first to
|
||||||
# not start spamming during normal output.
|
# not start spamming during normal output.
|
||||||
Homebrew.install_bundler_gems! if !args.no_audit? || !args.no_style?
|
Homebrew.install_bundler_gems! if !args.no_audit? || !args.no_style?
|
||||||
@ -268,21 +269,16 @@ module Homebrew
|
|||||||
if args.dry_run?
|
if args.dry_run?
|
||||||
if args.no_audit?
|
if args.no_audit?
|
||||||
ohai "Skipping `brew audit`"
|
ohai "Skipping `brew audit`"
|
||||||
elsif args.online?
|
|
||||||
ohai "brew audit --cask --online #{cask.full_name}"
|
|
||||||
else
|
else
|
||||||
ohai "brew audit --cask #{cask.full_name}"
|
ohai "brew audit --cask --online #{cask.full_name}"
|
||||||
end
|
end
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
failed_audit = false
|
failed_audit = false
|
||||||
if args.no_audit?
|
if args.no_audit?
|
||||||
ohai "Skipping `brew audit`"
|
ohai "Skipping `brew audit`"
|
||||||
elsif args.online?
|
|
||||||
system HOMEBREW_BREW_FILE, "audit", "--cask", "--online", cask.full_name
|
|
||||||
failed_audit = !$CHILD_STATUS.success?
|
|
||||||
else
|
else
|
||||||
system HOMEBREW_BREW_FILE, "audit", "--cask", cask.full_name
|
system HOMEBREW_BREW_FILE, "audit", "--cask", "--online", cask.full_name
|
||||||
failed_audit = !$CHILD_STATUS.success?
|
failed_audit = !$CHILD_STATUS.success?
|
||||||
end
|
end
|
||||||
return unless failed_audit
|
return unless failed_audit
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user