diff --git a/index.js b/index.js index 87252f5..e91b863 100644 --- a/index.js +++ b/index.js @@ -12,8 +12,8 @@ async function downloadRelease(octokit, os, org, repo, release, token) { // Determine environment specific details, paths etc... const postfix = `_${os}_amd64.${os === "windows" ? "zip" : "tar.gz"}`; - const tempdir = os === "windows" ? process.env.TEMP : "/tmp"; - const binpath = os === "windows" ? "C:\\Program Files\\GoTestTools\\" : "/usr/local/bin/"; + const tempdir = os === "windows" ? process.env.TEMP + "\\" : "/tmp/"; + const binpath = os === "windows" ? "C:\\Program Files\\GoTestTools" : "/usr/local/bin"; const extract = os === "windows" ? "tar -xvf" : "tar -xvzf"; const archive = `${tempdir}gotestfmt${postfix}`;