fix version output

This commit is contained in:
Sergey Dolin 2022-11-16 18:40:14 +01:00
parent 6bc15ab23c
commit 2516fdb6ee
2 changed files with 2 additions and 2 deletions

2
dist/setup/index.js vendored
View File

@ -73723,7 +73723,7 @@ function getToolVersion(tool, options) {
core.warning(`[warning]${stderr}`);
return '';
}
return stdout;
return stdout.trim();
}
catch (err) {
return '';

View File

@ -132,7 +132,7 @@ async function getToolVersion(tool: string, options: string[]) {
return '';
}
return stdout;
return stdout.trim();
} catch (err) {
return '';
}