diff --git a/index.js b/index.js index 117ac92..cdf6e2a 100644 --- a/index.js +++ b/index.js @@ -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}`)