From 191181f3f21f8858bb1844b13fc6560e1d057764 Mon Sep 17 00:00:00 2001 From: Yuri Norwood <106889957+norwd@users.noreply.github.com> Date: Mon, 7 Nov 2022 13:41:05 +1300 Subject: [PATCH] Rather than changing directories, specify target to tar command Signed-off-by: Yuri Norwood <106889957+norwd@users.noreply.github.com> --- index.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/index.js b/index.js index 921755a..2958eb7 100644 --- a/index.js +++ b/index.js @@ -39,10 +39,7 @@ async function downloadRelease(octokit, os, org, repo, release, token) { // Extract the archive into the install target console.log("Unpacking archive file...") - execSync(`cd "${binpath}" && ${extract} ${archive}`) - fs.readdirSync('.').forEach(file => { - console.log("Extracted " + file); - }); + execSync(`${extract} ${archive} -C ${binpath}`) // Remove the downloaded asset archive console.log("Removing asset archive...")