Prevent darwin from being reported as Linux

Signed-off-by: Yuri Norwood <106889957+norwd@users.noreply.github.com>
This commit is contained in:
Yuri Norwood 2022-11-07 09:22:31 +13:00 committed by GitHub
parent 7dc6b91140
commit c936969241
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -13,7 +13,7 @@ async function downloadRelease(octokit, os, org, repo, release, token) {
for (let asset of releaseAssets.data) {
console.log("Examining release asset " + asset.name + " at " + asset.browser_download_url + " ...")
if (asset.name.endsWith(tarPostfix)) {
console.log("Found Linux binary named " + asset.name + " at " + asset.browser_download_url + " , attempting download...")
console.log("Found Unix binary named " + asset.name + " at " + asset.browser_download_url + " , attempting download...")
if (token) {
execSync("curl -L -o /tmp/gotestfmt.tar.gz -H \"Authorization: Bearer " + token + "\" " + asset.browser_download_url)
} else {