Skip to content

Commit

Permalink
cask-pr-local-check: updates for deprecated commands (#94173)
Browse files Browse the repository at this point in the history
  • Loading branch information
miccal committed Dec 3, 2020
1 parent 5c0fffd commit 9d525bc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions developer/bin/cask-pr-local-check
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ ARGV.push("--help") if ARGV.empty?

OptionParser.new do |opt|
opt.banner = <<~BANNER
Run `brew cask` `audit` and `style` checks locally, from a pull request URL.
Run `brew` `audit` and `style` checks locally, from a pull request URL.
Useful when online CI is broken.
Usage:
Expand Down Expand Up @@ -43,5 +43,5 @@ file_name = File.basename(file_raw_url)
local_file = File.join(Dir.mktmpdir, file_name)

File.write(local_file, URI(file_raw_url).read)
abort "Audit failed" unless system("brew", "cask", "audit", "--download", local_file)
abort "Style check failed" unless system("brew", "cask", "style", local_file)
abort "Audit failed" unless system("brew", "audit", "--new-cask", local_file)
abort "Style check failed" unless system("brew", "style", local_file)

0 comments on commit 9d525bc

Please sign in to comment.