We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 968678a commit 34f8291Copy full SHA for 34f8291
1 file changed
src/cli/WinWSLCodacyCli.ts
@@ -30,7 +30,7 @@ export class WinWSLCodacyCli extends MacCodacyCli {
30
protected preparePathForExec(path: string): string {
31
// Convert the path to WSL format and wrap in quotes to handle spaces
32
const wslPath = WinWSLCodacyCli.toWSLPath(path)
33
- return `'${wslPath}'`
+ return wslPath.includes(' ') ? `"${wslPath}"` : wslPath;
34
}
35
36
protected async execAsync(
0 commit comments