Skip to content

Commit

Permalink
chore: simplify update script slightly
Browse files Browse the repository at this point in the history
  • Loading branch information
SimenB committed Oct 22, 2024
1 parent 2d3b74e commit 1b2a076
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions build-automation.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -87,13 +87,13 @@ export default async function(github) {
} else {
const newVersions = await checkForMuslVersionsAndSecurityReleases(github, versions);
let updatedVersions = [];
for (let version of Object.keys(newVersions)) {
if (newVersions[version].muslBuildExists) {
const { stdout } = await exec(`./update.sh ${newVersions[version].isSecurityRelease ? "-s " : ""}${version}`);
for (const [version, newVersion] of Object.entries(newVersions)) {
if (newVersion.muslBuildExists) {
const { stdout } = await exec(`./update.sh ${newVersion.isSecurityRelease ? "-s " : ""}${version}`);
console.log(stdout);
updatedVersions.push(newVersions[version].fullVersion);
updatedVersions.push(newVersion.fullVersion);
} else {
console.log(`There's no musl build for version ${newVersions[version].fullVersion} yet.`);
console.log(`There's no musl build for version ${newVersion.fullVersion} yet.`);
process.exit(0);
}
}
Expand Down

0 comments on commit 1b2a076

Please sign in to comment.