Skip to content

Commit

Permalink
Merge pull request #39 from crazy-max/trim
Browse files Browse the repository at this point in the history
Ensure trimmed output
  • Loading branch information
crazy-max committed Jul 1, 2021
2 parents 33dc2d9 + 3393b5e commit f7388a1
Show file tree
Hide file tree
Showing 2 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.

4 changes: 2 additions & 2 deletions src/buildx.ts
Expand Up @@ -23,9 +23,9 @@ export async function getVersion(): Promise<string> {
})
.then(res => {
if (res.stderr.length > 0 && res.exitCode != 0) {
throw new Error(res.stderr);
throw new Error(res.stderr.trim());
}
return parseVersion(res.stdout);
return parseVersion(res.stdout.trim());
});
}

Expand Down

0 comments on commit f7388a1

Please sign in to comment.