Skip to content

Commit 1b2a076

Browse files
committed
chore: simplify update script slightly
1 parent 2d3b74e commit 1b2a076

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

build-automation.mjs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -87,13 +87,13 @@ export default async function(github) {
8787
} else {
8888
const newVersions = await checkForMuslVersionsAndSecurityReleases(github, versions);
8989
let updatedVersions = [];
90-
for (let version of Object.keys(newVersions)) {
91-
if (newVersions[version].muslBuildExists) {
92-
const { stdout } = await exec(`./update.sh ${newVersions[version].isSecurityRelease ? "-s " : ""}${version}`);
90+
for (const [version, newVersion] of Object.entries(newVersions)) {
91+
if (newVersion.muslBuildExists) {
92+
const { stdout } = await exec(`./update.sh ${newVersion.isSecurityRelease ? "-s " : ""}${version}`);
9393
console.log(stdout);
94-
updatedVersions.push(newVersions[version].fullVersion);
94+
updatedVersions.push(newVersion.fullVersion);
9595
} else {
96-
console.log(`There's no musl build for version ${newVersions[version].fullVersion} yet.`);
96+
console.log(`There's no musl build for version ${newVersion.fullVersion} yet.`);
9797
process.exit(0);
9898
}
9999
}

0 commit comments

Comments
 (0)