Skip to content

Commit bde36c1

Browse files
authored
fix Windows path with space char (#57)
Signed-off-by: Gilbert Kwan <[email protected]>
1 parent 99b7d3e commit bde36c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/util/file.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ function javaExist(javaPath: string | undefined) : string | undefined {
6969
let java = path.join(javaPath, "bin");
7070
java = path.join(java, JAVA_FILENAME);
7171
if (fs.existsSync(java)) {
72-
return java;
72+
return '"' + java + '"';
7373
}
7474
}
7575
return undefined;

0 commit comments

Comments
 (0)