From 8f54926f6c9ae00d7bfed5d502f0fc2ac00a9479 Mon Sep 17 00:00:00 2001 From: Yuri Norwood <106889957+norwd@users.noreply.github.com> Date: Mon, 7 Nov 2022 11:23:44 +1300 Subject: [PATCH] Attempt to prevent existing directories causing problems Signed-off-by: Yuri Norwood <106889957+norwd@users.noreply.github.com> --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index cdf6e2a..5aabe19 100644 --- a/index.js +++ b/index.js @@ -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...")