cask-pr-local-check: updates for deprecated commands (#94173)

This commit is contained in:
Miccal Matthews
2020-12-03 15:28:16 +11:00
committed by GitHub
parent 5c0fffd8ee
commit 9d525bcbda
+3 -3
View File
@@ -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:
@@ -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)