From 5ddf46e615a9d64c75bb9ca09592147f3af8464b Mon Sep 17 00:00:00 2001 From: Andy Damevin Date: Wed, 4 Dec 2024 10:13:46 +0100 Subject: [PATCH] Fix executable check --- .../src/main/java/io/mvnpm/esbuild/resolve/BundledResolver.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/io/mvnpm/esbuild/resolve/BundledResolver.java b/core/src/main/java/io/mvnpm/esbuild/resolve/BundledResolver.java index 373d33b..44036d9 100644 --- a/core/src/main/java/io/mvnpm/esbuild/resolve/BundledResolver.java +++ b/core/src/main/java/io/mvnpm/esbuild/resolve/BundledResolver.java @@ -20,7 +20,7 @@ public BundledResolver(Resolver fallbackResolver) { public Path resolve(String version) throws IOException { final Path path = getLocation(version); final Path executablePath = resolveExecutablePath(path); - if (Files.isExecutable(path)) { + if (Files.isExecutable(executablePath)) { return executablePath; }