mirror of
https://gitea.com/docker/build-push-action.git
synced 2025-07-10 21:57:10 +08:00
Small typo and ensure trimmed output
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
@ -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());
|
||||
});
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user