Skip to content

Commit fc76765

Browse files
fix: trim path
1 parent f4cd167 commit fc76765

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/utils/getRuntimeExecutableForIde.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,10 @@ async function findGlobalPackagePath(packageName: string) {
2020
`Searching for ${packageName} globally. Executed command: ${command}. Output: ${stdout}`,
2121
);
2222

23-
const path = stdout?.trim().split('\n')[0];
23+
const path = stdout?.trim().split('\n')[0]?.trim();
2424

2525
if (path) {
26-
console.log(
27-
`Global installation path for ${packageName}: ${path.trim()}`,
28-
);
26+
console.log(`Global installation path for ${packageName}: ${path}`);
2927
return path;
3028
}
3129
return undefined;

0 commit comments

Comments
 (0)