fix: change relative path to install scripts

This commit is contained in:
Nogic 2023-04-26 23:52:52 +00:00
parent 3fcae62228
commit 061d7afe7f
2 changed files with 2 additions and 2 deletions

2
dist/setup/index.js vendored
View File

@ -71290,7 +71290,7 @@ class DotnetCoreInstaller {
]; ];
const scriptName = utils_1.IS_WINDOWS ? 'install-dotnet.ps1' : 'install-dotnet.sh'; const scriptName = utils_1.IS_WINDOWS ? 'install-dotnet.ps1' : 'install-dotnet.sh';
const escapedScript = path_1.default const escapedScript = path_1.default
.join(__dirname, '..', 'externals', scriptName) .join(__dirname, '..', '..', 'externals', scriptName)
.replace(/'/g, "''"); .replace(/'/g, "''");
let scriptArguments; let scriptArguments;
let scriptPath = ''; let scriptPath = '';

View File

@ -188,7 +188,7 @@ export class DotnetCoreInstaller {
]; ];
const scriptName = IS_WINDOWS ? 'install-dotnet.ps1' : 'install-dotnet.sh'; const scriptName = IS_WINDOWS ? 'install-dotnet.ps1' : 'install-dotnet.sh';
const escapedScript = path const escapedScript = path
.join(__dirname, '..', 'externals', scriptName) .join(__dirname, '..', '..', 'externals', scriptName)
.replace(/'/g, "''"); .replace(/'/g, "''");
let scriptArguments: string[]; let scriptArguments: string[];
let scriptPath = ''; let scriptPath = '';