From 7becac8391069e31aa0c465d45a236691faac7b8 Mon Sep 17 00:00:00 2001 From: Yuri Norwood <106889957+norwd@users.noreply.github.com> Date: Mon, 7 Nov 2022 15:51:11 +1300 Subject: [PATCH] Specify fs.constants.COPYFILE_EXCL copy mode 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 926261c..c5b23a3 100644 --- a/index.js +++ b/index.js @@ -41,7 +41,7 @@ async function downloadRelease(octokit, os, org, repo, release, token) { // Extract the archive into the install target console.log("Unpacking archive file...") execSync(`${extract} "${archive}"`) - fs.copyFile(binfile, `${binpath}${binfile}`, function (err) { + fs.copyFile(binfile, `${binpath}${binfile}`, fs.constants.COPYFILE_EXCL, function (err) { if (err) { throw err; }