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...")