diff --git a/dist/post_run/index.js b/dist/post_run/index.js index d175496..78f8856 100644 --- a/dist/post_run/index.js +++ b/dist/post_run/index.js @@ -69112,7 +69112,7 @@ async function installBin(versionInfo) { else { // We want to always overwrite files if the local cache already has them const args = ["xz"]; - if (process.platform.toString() != "darwin") { + if (!["darwin", "freebsd"].includes(process.platform.toString())) { args.push("--overwrite"); } extractedDir = await tc.extractTar(archivePath, process.env.HOME, args); diff --git a/dist/run/index.js b/dist/run/index.js index 1e0150f..b5a4ce4 100644 --- a/dist/run/index.js +++ b/dist/run/index.js @@ -69112,7 +69112,7 @@ async function installBin(versionInfo) { else { // We want to always overwrite files if the local cache already has them const args = ["xz"]; - if (process.platform.toString() != "darwin") { + if (!["darwin", "freebsd"].includes(process.platform.toString())) { args.push("--overwrite"); } extractedDir = await tc.extractTar(archivePath, process.env.HOME, args); diff --git a/src/install.ts b/src/install.ts index f8b2b18..65961a2 100644 --- a/src/install.ts +++ b/src/install.ts @@ -145,7 +145,7 @@ async function installBin(versionInfo: VersionInfo): Promise { } else { // We want to always overwrite files if the local cache already has them const args = ["xz"] - if (process.platform.toString() != "darwin") { + if (!["darwin", "freebsd"].includes(process.platform.toString())) { args.push("--overwrite") } extractedDir = await tc.extractTar(archivePath, process.env.HOME, args)