mirror of
https://github.com/wavetermdev/homebrew-cask.git
synced 2026-08-05 13:43:24 -07:00
cask_pr_manual_check: cosmetic improvements and rename (#73844)
This commit is contained in:
@@ -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)
|
||||
Reference in New Issue
Block a user