From bb80ee110d5fcd64d07db0c2b363ba8e9706f004 Mon Sep 17 00:00:00 2001 From: Chaos Date: Tue, 11 Jan 2022 21:20:17 +0100 Subject: [PATCH] Fix --- src/main/java/de/chaos/swlnmngr/config/CLIConfig.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/de/chaos/swlnmngr/config/CLIConfig.java b/src/main/java/de/chaos/swlnmngr/config/CLIConfig.java index 2f9c2bf..058ece6 100644 --- a/src/main/java/de/chaos/swlnmngr/config/CLIConfig.java +++ b/src/main/java/de/chaos/swlnmngr/config/CLIConfig.java @@ -54,7 +54,8 @@ public class CLIConfig { .getLocation() .toURI() .getPath()) - .getCanonicalFile(); + .getCanonicalFile() + .getParentFile(); INSTALL_DIR_IS_SET = false; } catch (IOException | URISyntaxException e) { Main.getLogger().error(e.getMessage(), e);