cask-pr-inspect-download: update command (#124374)

* cask-pr-inspect-download: update command

* cask-pr-local-check: update command
This commit is contained in:
Bevan Kay
2022-05-27 11:16:25 +08:00
committed by GitHub
parent 0997af9292
commit 40e3586f5f
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -39,7 +39,7 @@ pr_json = JSON.parse(URI(pr_api).read)
abort "PR needs to have a single file" if pr_json.count != 1
file_raw_url = pr_json[0]["raw_url"]
file_raw_url = pr_json[0]["raw_url"].gsub("%2F", "/")
file_name = File.basename(file_raw_url)
local_file = File.join(Dir.mktmpdir, file_name)
tmp_cache_dir = Dir.mktmpdir
+1 -1
View File
@@ -38,7 +38,7 @@ pr_json = JSON.parse(URI(pr_api).read)
abort "PR needs to have a single file" if pr_json.count != 1
file_raw_url = pr_json[0]["raw_url"]
file_raw_url = pr_json[0]["raw_url"].gsub("%2F", "/")
file_name = File.basename(file_raw_url)
local_file = File.join(Dir.mktmpdir, file_name)