File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -93715,7 +93715,7 @@ class BasePrereleaseNodejs extends base_distribution_1.default {
93715
93715
let toolPath = '';
93716
93716
let nodeInstallationPath = core.getInput('node-installation-path');
93717
93717
if (os_1.default.platform() != 'win32') {
93718
- nodeInstallationPath = nodeInstallationPath.replace(/\\? bin$/, '');
93718
+ nodeInstallationPath = nodeInstallationPath.replace(/\\bin$/, '').replace(/\/ bin$/, '');
93719
93719
}
93720
93720
const localVersionPaths = tc
93721
93721
.findAllVersions('node', this.nodeInfo.arch)
@@ -93996,7 +93996,7 @@ class BaseDistribution {
93996
93996
info = info || {}; // satisfy compiler, never null when reaches here
93997
93997
let nodeInstallationPath = core.getInput('node-installation-path');
93998
93998
if (this.osPlat != 'win32') {
93999
- nodeInstallationPath = nodeInstallationPath.replace(/\\? bin$/, '');
93999
+ nodeInstallationPath = nodeInstallationPath.replace(/\\bin$/, '').replace(/\/ bin$/, '');
94000
94000
}
94001
94001
if (this.osPlat == 'win32') {
94002
94002
const extension = this.nodeInfo.arch === 'arm64' ? '.zip' : '.7z';
You can’t perform that action at this time.
0 commit comments