Skip to content

Commit

Permalink
Escape spaces in shell path (#885)
Browse files Browse the repository at this point in the history
  • Loading branch information
vinistock authored Nov 8, 2023
1 parent 73f097e commit 7e6d213
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ruby.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export class Ruby {
private readonly workingFolderPath: string;
#versionManager?: VersionManager;
// eslint-disable-next-line no-process-env
private readonly shell = process.env.SHELL;
private readonly shell = process.env.SHELL?.replace(/(\s+)/g, "\\$1");
private _env: NodeJS.ProcessEnv = {};
private _error = false;
private readonly context: vscode.ExtensionContext;
Expand Down

0 comments on commit 7e6d213

Please sign in to comment.