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)