Remove redundant pathsep variable

Signed-off-by: Yuri Norwood <106889957+norwd@users.noreply.github.com>
This commit is contained in:
Yuri Norwood 2022-11-07 11:01:48 +13:00 committed by GitHub
parent ea9ac7fd9e
commit 12174122f2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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`);