diff --git a/index.js b/index.js index 2516f8e..091bb1b 100644 --- a/index.js +++ b/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`);