Fix when bundler directory is a symlink

By: md_5 <git@md-5.net>
This commit is contained in:
CraftBukkit/Spigot 2021-12-03 16:24:34 +11:00
parent 05d379a339
commit d07de3d840

View File

@ -34,7 +34,9 @@ public class Main {
String repoDir = System.getProperty("bundlerRepoDir", "bundler"); String repoDir = System.getProperty("bundlerRepoDir", "bundler");
Path outputDir = Paths.get(repoDir).toAbsolutePath(); Path outputDir = Paths.get(repoDir).toAbsolutePath();
Files.createDirectories(outputDir); if (!Files.isDirectory(outputDir)) {
Files.createDirectories(outputDir);
}
System.out.println("Unbundling libraries to " + outputDir); System.out.println("Unbundling libraries to " + outputDir);