diff --git a/index.js b/index.js index 8fa3c3c..5ba8bb9 100644 --- a/index.js +++ b/index.js @@ -74,6 +74,12 @@ async function downloadGofmt(octokit, version, versionPrefix, os, org, repo, tok async function determineOS() { const os = execSync("uname").toString().trim().toLowerCase() + + if (os.indexOf("msys_nt") === 0) + { + os = "windows"; + } + console.log(`Running on OS '${os}'`) return os }