Skip to content

Commit 1bc1040

Browse files
authored
Merge pull request #400 from crazy-max/typo
Small typo and ensure trimmed output
2 parents 0987321 + fcaaa5e commit 1bc1040

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

dist/index.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/buildx.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ export async function getVersion(): Promise<string> {
103103
if (res.stderr.length > 0 && res.exitCode != 0) {
104104
throw new Error(res.stderr.trim());
105105
}
106-
return parseVersion(res.stdout);
106+
return parseVersion(res.stdout.trim());
107107
});
108108
}
109109

src/main.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ async function run(): Promise<void> {
2929
})
3030
.then(res => {
3131
if (res.stderr.length > 0 && res.exitCode != 0) {
32-
throw new Error(`buildx bake failed with: ${res.stderr.match(/(.*)\s*$/)![0].trim()}`);
32+
throw new Error(`buildx failed with: ${res.stderr.match(/(.*)\s*$/)![0].trim()}`);
3333
}
3434
});
3535

0 commit comments

Comments
 (0)