Ensure bin path exists

Signed-off-by: Yuri Norwood <106889957+norwd@users.noreply.github.com>
This commit is contained in:
Yuri Norwood 2022-11-07 11:19:57 +13:00 committed by GitHub
parent 9504821a22
commit 41182fa2c4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -37,6 +37,10 @@ async function downloadRelease(octokit, os, org, repo, release, token) {
execSync(`curl -L -o ${archive} ${asset.browser_download_url}`)
}
// Ensure the that the install target exists
console.log("Preparing install target...")
fs.mkdirSync(binpath)
// Extract the archive into the install target
console.log("Unpacking archive file...")
execSync(`cd "${binpath}" && ${extract} ${archive}`)