Skip to content

Commit

Permalink
fix finding native-image on windows?
Browse files Browse the repository at this point in the history
  • Loading branch information
ianopolous committed Mar 25, 2024
1 parent cb7656d commit cae1d72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion native-build/InstallNativeImage.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public static void main(String[] a) throws Exception {
String binExt = OS.equals("windows") ? ".cmd" : "";

Optional<Path> nativeImage = Files.walk(Paths.get(""), 5)
.filter(p -> p.getFileName().startsWith("native-image") && p.toFile().isFile())
.filter(p -> p.getFileName().startsWith("native-image") && !p.toFile().isDirectory())
.findFirst();

if (nativeImage.isPresent())
Expand Down

0 comments on commit cae1d72

Please sign in to comment.