Skip to content

Commit

Permalink
Merge pull request #400 from crazy-max/typo
Browse files Browse the repository at this point in the history
Small typo and ensure trimmed output
  • Loading branch information
crazy-max committed Jul 1, 2021
2 parents 0987321 + fcaaa5e commit 1bc1040
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/buildx.ts
Expand Up @@ -103,7 +103,7 @@ export async function getVersion(): Promise<string> {
if (res.stderr.length > 0 && res.exitCode != 0) {
throw new Error(res.stderr.trim());
}
return parseVersion(res.stdout);
return parseVersion(res.stdout.trim());
});
}

Expand Down
2 changes: 1 addition & 1 deletion src/main.ts
Expand Up @@ -29,7 +29,7 @@ async function run(): Promise<void> {
})
.then(res => {
if (res.stderr.length > 0 && res.exitCode != 0) {
throw new Error(`buildx bake failed with: ${res.stderr.match(/(.*)\s*$/)![0].trim()}`);
throw new Error(`buildx failed with: ${res.stderr.match(/(.*)\s*$/)![0].trim()}`);
}
});

Expand Down

0 comments on commit 1bc1040

Please sign in to comment.