mirror of
https://github.com/GoTestTools/gotestfmt-action.git
synced 2026-02-08 00:37:27 +00:00
Specify fs.constants.COPYFILE_EXCL copy mode
Signed-off-by: Yuri Norwood <106889957+norwd@users.noreply.github.com>
This commit is contained in:
parent
5b5c8badb7
commit
7becac8391
1 changed files with 1 additions and 1 deletions
2
index.js
2
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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue