Skip to content

Commit bcb80b1

Browse files
authored
Fix jdk detection: cover symlink folder on Linux (#1704)
Signed-off-by: Yan Zhang <[email protected]>
1 parent 59c6e54 commit bcb80b1

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/findJavaRuntimes.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,6 @@ export async function verifyJavaHome(raw: string, javaFilename: string): Promise
244244
const targetJavaFile = await findLinkedFile(path.resolve(dir, "bin", javaFilename));
245245
const proposed = path.dirname(path.dirname(targetJavaFile));
246246
if (await fse.pathExists(proposed)
247-
&& (await fse.lstat(proposed)).isDirectory()
248247
&& await fse.pathExists(path.resolve(proposed, "bin", javaFilename))
249248
) {
250249
return proposed;

0 commit comments

Comments
 (0)