mirror of
https://github.com/GoTestTools/gotestfmt-action.git
synced 2026-02-08 00:37:27 +00:00
Remove redundant pathsep variable
Signed-off-by: Yuri Norwood <106889957+norwd@users.noreply.github.com>
This commit is contained in:
parent
ea9ac7fd9e
commit
12174122f2
1 changed files with 2 additions and 3 deletions
5
index.js
5
index.js
|
|
@ -11,11 +11,10 @@ async function downloadRelease(octokit, os, org, repo, release, token) {
|
|||
})
|
||||
|
||||
const postfix = `_${os}_amd64.${os === "windows" ? "zip" : "tar.gz"}`;
|
||||
const pathsep = os === "windows" ? "\\" : "/";
|
||||
const tempdir = os === "windows" ? process.env.TEMP : "/tmp";
|
||||
const binpath = os === "windows" ? "C:\\Program Files\\GoTestTools" : "/usr/local/bin";
|
||||
const binpath = os === "windows" ? "C:\\Program Files\\GoTestTools\\" : "/usr/local/bin/";
|
||||
const extract = os === "windows" ? "tar -xvf" : "tar -xvzf";
|
||||
const archive = `${tempdir}${pathsep}gotestfmt${postfix}`;
|
||||
const archive = `${tempdir}gotestfmt${postfix}`;
|
||||
|
||||
if (os === "windows") {
|
||||
execSync(`"${binpath}" >> $env:GITHUB_PATH`);
|
||||
|
|
|
|||
Loading…
Reference in a new issue