Skip to content

Commit faebb3d

Browse files
committed
trim whitespaces
Signed-off-by: Harta Angkasa <24356946+ItsHarta@users.noreply.github.com>
1 parent 2bd4f4f commit faebb3d

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

build-automation.mjs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ const checkIfThereAreNewVersions = async (github) => {
2424

2525
const alpineVersion = baseVersions.find(v => v.startsWith("alpine"));
2626
const { stdout: alpineVersionOutput } = await exec(`. ./functions.sh && get_full_version ./${supportedVersion}/${alpineVersion}`, { shell: "bash" });
27-
27+
2828
const fullVersion = { main : standardVersionOutput.trim(), alpine: alpineVersionOutput.trim() };
2929
console.log(`${supportedVersion}: main=${fullVersion.main}, alpine=${fullVersion.alpine}`);
3030

@@ -64,9 +64,9 @@ const checkIfThereAreNewVersions = async (github) => {
6464
// Alpine will be always behind or equal to main
6565
// So if main is new version, then alpineOnly is always false. And vice versa
6666
if (newMainline || isCatchup) {
67-
filteredNewerVersions[availableMajor] = {
68-
fullVersion: availableFullVersion,
69-
alpineOnly: !newMainline
67+
filteredNewerVersions[availableMajor] = {
68+
fullVersion: availableFullVersion,
69+
alpineOnly: !newMainline
7070
};
7171
}
7272
}
@@ -119,19 +119,19 @@ export default async function(github) {
119119
// If MUSL is available: build everything (new versions) or alpine only (catch-up)
120120
if (muslBuildExists) {
121121
const updateScope = alpineOnly ? "alpine" : "";
122-
122+
123123
console.log(`MUSL available. Updating ${fullVersion} ${updateScope}.`.trim());
124124
const { stdout } = await exec(`./update.sh ${version} ${updateScope}`.trim());
125125
console.log(stdout);
126-
126+
127127
updatedVersions.push(`${fullVersion} ${updateScope}`.trim());
128128
// Security release: no MUSL build
129129
} else if (isSecurityRelease && !alpineOnly) {
130130
console.log(`Updating ${fullVersion} for non-alpine.`);
131-
131+
132132
const { stdout } = await exec(`./update.sh -s ${version}`);
133133
console.log(stdout);
134-
134+
135135
updatedVersions.push(`${fullVersion} (non-alpine)`);
136136
} else {
137137
console.log(`No MUSL build for ${fullVersion} yet.`);
@@ -143,4 +143,4 @@ export default async function(github) {
143143

144144
return updatedVersions.join(', ');
145145
}
146-
}
146+
}

0 commit comments

Comments
 (0)