Correct all references to hardcoded filename

Signed-off-by: Yuri Norwood <106889957+norwd@users.noreply.github.com>
This commit is contained in:
Yuri Norwood 2022-11-07 09:55:50 +13:00 committed by GitHub
parent 2725d26cb6
commit 05082d6398
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -29,10 +29,10 @@ async function downloadRelease(octokit, os, org, repo, release, token) {
execSync("sudo mkdir -p /usr/local/lib/gotestfmt")
console.log("Unpacking tar file...")
execSync("cd /usr/local/lib/gotestfmt && sudo tar -xvzf /tmp/gotestfmt.tar.gz")
execSync(`cd /usr/local/lib/gotestfmt && sudo tar -xvzf ${tempdir}/gotestfmt${postfix}`)
console.log("Removing tarball...")
fs.unlinkSync("/tmp/gotestfmt.tar.gz")
fs.unlinkSync(`${tempdir}/gotestfmt${postfix}`)
console.log("Creating /usr/local/bin directory if it does not exist already...")
execSync("sudo mkdir -p /usr/local/bin")