mirror of
https://github.com/GoTestTools/gotestfmt-action.git
synced 2026-02-19 22:21:45 +00:00
Correctly identify windows os
Signed-off-by: Yuri Norwood <106889957+norwd@users.noreply.github.com>
This commit is contained in:
parent
19aa3d4945
commit
7dc6b91140
1 changed files with 6 additions and 0 deletions
6
index.js
6
index.js
|
|
@ -74,6 +74,12 @@ async function downloadGofmt(octokit, version, versionPrefix, os, org, repo, tok
|
||||||
|
|
||||||
async function determineOS() {
|
async function determineOS() {
|
||||||
const os = execSync("uname").toString().trim().toLowerCase()
|
const os = execSync("uname").toString().trim().toLowerCase()
|
||||||
|
|
||||||
|
if (os.indexOf("msys_nt") === 0)
|
||||||
|
{
|
||||||
|
os = "windows";
|
||||||
|
}
|
||||||
|
|
||||||
console.log(`Running on OS '${os}'`)
|
console.log(`Running on OS '${os}'`)
|
||||||
return os
|
return os
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue