From 479a5ebf04bd3545056d43cb0039c665c67b6274 Mon Sep 17 00:00:00 2001 From: Yuri Norwood <106889957+norwd@users.noreply.github.com> Date: Mon, 7 Nov 2022 10:46:40 +1300 Subject: [PATCH] Add debugger lines for executed commands Signed-off-by: Yuri Norwood <106889957+norwd@users.noreply.github.com> --- index.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index b45dd8f..c9f22ca 100644 --- a/index.js +++ b/index.js @@ -31,16 +31,19 @@ async function downloadRelease(octokit, os, org, repo, release, token) { console.log("Found binary named " + asset.name + " at " + asset.browser_download_url + " , attempting download...") if (token) { + console.log(`curl -L -o ${archive} -H "Authorization: Bearer ${token}" ${asset.browser_download_url}`) execSync(`curl -L -o ${archive} -H "Authorization: Bearer ${token}" ${asset.browser_download_url}`) } else { + console.log(`curl -L -o ${archive} ${asset.browser_download_url}`) execSync(`curl -L -o ${archive} ${asset.browser_download_url}`) } console.log("Unpacking archive file...") + console.log(`cd ${binpath} && ${extract} ${archive}`) execSync(`cd ${binpath} && ${extract} ${archive}`) console.log("Removing asset archive...") - fs.unlinkSync(`${archive}`) + fs.unlinkSync(archive) console.log("Successfully set up gotestfmt.") return