cask_pr_manual_check: cosmetic improvements and rename (#73844)

This commit is contained in:
Vítor Galvão
2019-12-07 19:21:41 +00:00
committed by GitHub
parent c6dbaab12c
commit fc1ffaf1fb
@@ -16,8 +16,8 @@ abort 'PR needs to have a single file' if pr_json.count != 1
file_raw_url = pr_json[0]['raw_url']
file_name = File.basename(file_raw_url)
local_file = "#{Dir.mktmpdir}/#{file_name}"
IO.copy_stream(open(file_raw_url), local_file)
local_file = File.join(Dir.mktmpdir, file_name)
File.write(local_file, URI(file_raw_url).read)
system('brew', 'cask', 'audit', '--download', local_file)
system('brew', 'cask', 'style', local_file)