Skip to content

Commit 0debf8f

Browse files
committed
Update index.js
1 parent 58a4f3c commit 0debf8f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dist/setup/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93715,7 +93715,7 @@ class BasePrereleaseNodejs extends base_distribution_1.default {
9371593715
let toolPath = '';
9371693716
let nodeInstallationPath = core.getInput('node-installation-path');
9371793717
if (os_1.default.platform() != 'win32') {
93718-
nodeInstallationPath = nodeInstallationPath.replace(/\\?bin$/, '');
93718+
nodeInstallationPath = nodeInstallationPath.replace(/\\bin$/, '').replace(/\/bin$/, '');
9371993719
}
9372093720
const localVersionPaths = tc
9372193721
.findAllVersions('node', this.nodeInfo.arch)
@@ -93996,7 +93996,7 @@ class BaseDistribution {
9399693996
info = info || {}; // satisfy compiler, never null when reaches here
9399793997
let nodeInstallationPath = core.getInput('node-installation-path');
9399893998
if (this.osPlat != 'win32') {
93999-
nodeInstallationPath = nodeInstallationPath.replace(/\\?bin$/, '');
93999+
nodeInstallationPath = nodeInstallationPath.replace(/\\bin$/, '').replace(/\/bin$/, '');
9400094000
}
9400194001
if (this.osPlat == 'win32') {
9400294002
const extension = this.nodeInfo.arch === 'arm64' ? '.zip' : '.7z';

0 commit comments

Comments
 (0)