Add debugger lines for executed commands

Signed-off-by: Yuri Norwood <106889957+norwd@users.noreply.github.com>
This commit is contained in:
Yuri Norwood 2022-11-07 10:46:40 +13:00 committed by GitHub
parent 23017b3af3
commit 479a5ebf04
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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