1
0
Fork 0
mirror of https://github.com/actions/setup-node synced 2024-12-22 21:22:42 +00:00

fix version output from file (#625)

This commit is contained in:
Sergey Dolin 2022-11-17 14:43:40 +01:00 committed by GitHub
parent 2349c84f5c
commit 41acaa2e85
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

2
dist/setup/index.js vendored
View file

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

View file

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