Skip to content

Commit

Permalink
Dont create install script folder as it should be managed by the exte…
Browse files Browse the repository at this point in the history
…nsion
  • Loading branch information
nagilson committed Jan 23, 2024
1 parent 0a51f59 commit a9224c9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
2 changes: 1 addition & 1 deletion mock-webpack.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ echo ""
echo "----------- Copying Library Webpacked Dependencies -----------"
echo "" # See the build.ps1 for more details on why we do this
cp -r ./vscode-dotnet-runtime-library/distro-data ./vscode-dotnet-runtime-library/dist/Acquisition
cp -r "./vscode-dotnet-runtime-library/install scripts" ./vscode-dotnet-runtime-library/dist/utils
cp -r "./vscode-dotnet-runtime-library/install scripts" ./vscode-dotnet-runtime-library/dist/Utils
10 changes: 3 additions & 7 deletions vscode-dotnet-runtime-library/src/Utils/CommandExecutor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ Please install the .NET SDK manually by following https://learn.microsoft.com/en
}
this.returnStatus = oldReturnStatusSetting;

return this.executeSudoViaProcessCommmunication(fullCommandString, terminalFailure);
return this.executeSudoViaProcessCommunication(fullCommandString, terminalFailure);
}

/**
Expand All @@ -131,10 +131,6 @@ Please install the .NET SDK manually by following https://learn.microsoft.com/en
*/
private async startupSudoProc(fullCommandString : string, shellScriptPath : string, terminalFailure : boolean) : Promise<string>
{
if (!fs.existsSync(this.sudoProcessCommunicationDir))
{
fs.mkdirSync(this.sudoProcessCommunicationDir);
}
if(this.hasEverLaunchedSudoFork)
{
if(await this.sudoProcIsLive(false))
Expand All @@ -155,7 +151,7 @@ Please install the .NET SDK manually by following https://learn.microsoft.com/en
sanitizedCallerName = sanitizedCallerName?.substring(0, 69); // 70 Characters is the maximum limit we can use for the prompt.
const options = { name: `${sanitizedCallerName ?? '.NET Install Tool'}` };

exec((`sh ${shellScriptPath} ${this.validSudoCommands?.join(' ')}`), options, (error?: any, stdout?: any, stderr?: any) =>
exec((`sh "${shellScriptPath}" ${this.validSudoCommands?.join(' ')}`), options, (error?: any, stdout?: any, stderr?: any) =>
{
let commandResultString = '';

Expand Down Expand Up @@ -266,7 +262,7 @@ Process Directory: ${this.sudoProcessCommunicationDir} failed with error mode: $
* @param failOnNonZeroExit Whether to fail if we get an exit code from the command besides 0.
* @returns The output string of the command, or the string status code, depending on the mode of execution.
*/
private async executeSudoViaProcessCommmunication(commandToExecuteString : string, terminalFailure : boolean, failOnNonZeroExit = true) : Promise<string>
private async executeSudoViaProcessCommunication(commandToExecuteString : string, terminalFailure : boolean, failOnNonZeroExit = true) : Promise<string>
{
let commandOutputJson : CommandProcessorOutput | null = null;
let statusCode = '1220'; // Special failure code for if code is never set error
Expand Down

0 comments on commit a9224c9

Please sign in to comment.