Attempt to prevent existing directories causing problems

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

View file

@ -39,7 +39,7 @@ async function downloadRelease(octokit, os, org, repo, release, token) {
// Ensure the that the install target exists
console.log("Preparing install target...")
fs.mkdirSync(binpath)
fs.mkdirSync(binpath, { recursive: true })
// Extract the archive into the install target
console.log("Unpacking archive file...")