Specify fs.constants.COPYFILE_EXCL copy mode

Signed-off-by: Yuri Norwood <106889957+norwd@users.noreply.github.com>
This commit is contained in:
Yuri Norwood 2022-11-07 15:51:11 +13:00 committed by GitHub
parent 5b5c8badb7
commit 7becac8391
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;
}