mirror of
https://gitea.com/actions/setup-node.git
synced 2025-07-23 03:48:03 +08:00
fix version output from file (#625)
This commit is contained in:
@@ -133,7 +133,7 @@ async function getToolVersion(tool: string, options: string[]) {
|
||||
return '';
|
||||
}
|
||||
|
||||
return stdout;
|
||||
return stdout.trim();
|
||||
} catch (err) {
|
||||
return '';
|
||||
}
|
||||
|
Reference in New Issue
Block a user