Make postfix constant

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

View file

@ -10,7 +10,7 @@ async function downloadRelease(octokit, os, org, repo, release, token) {
release_id: release.id,
})
postfix = `_${os}_amd64.${os === "windows" ? "zip" : "tar.gz"}`;
const postfix = `_${os}_amd64.${os === "windows" ? "zip" : "tar.gz"}`;
for (let asset of releaseAssets.data) {
console.log("Examining release asset " + asset.name + " at " + asset.browser_download_url + " ...")