minor fix

This commit is contained in:
Dmitry Shibanov 2022-12-13 11:25:04 +01:00
parent 2d741fbf57
commit 292688b127
3 changed files with 16 additions and 7 deletions

View file

@ -36,6 +36,10 @@ export default abstract class BaseDistribution {
toolPath = await this.downloadNodejs(toolName);
}
if (this.osPlat != 'win32') {
toolPath = path.join(toolPath, 'bin');
}
core.addPath(toolPath);
}
@ -82,10 +86,6 @@ export default abstract class BaseDistribution {
let toolPath = await this.extractArchive(downloadPath, info);
core.info('Done');
if (osPlat != 'win32') {
toolPath = path.join(toolPath, 'bin');
}
return toolPath;
}