From 9d525bcbdab017a72005a85e52ebef3f93ee50f3 Mon Sep 17 00:00:00 2001 From: Miccal Matthews Date: Thu, 3 Dec 2020 12:28:16 +0800 Subject: [PATCH] cask-pr-local-check: updates for deprecated commands (#94173) --- developer/bin/cask-pr-local-check | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/developer/bin/cask-pr-local-check b/developer/bin/cask-pr-local-check index cdc69e43a5..ac44bed150 100755 --- a/developer/bin/cask-pr-local-check +++ b/developer/bin/cask-pr-local-check @@ -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)