From 064a710c120c62714b46adb216a9ffb29daeb0f4 Mon Sep 17 00:00:00 2001 From: Chaoscaot Date: Sun, 2 Jan 2022 15:59:54 +0100 Subject: [PATCH] Remove Update --- src/main/java/de/chaos/swlnmngr/Main.java | 2 +- src/main/resources/default_swlnmngr.sh | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/de/chaos/swlnmngr/Main.java b/src/main/java/de/chaos/swlnmngr/Main.java index ae529c9..87d668d 100644 --- a/src/main/java/de/chaos/swlnmngr/Main.java +++ b/src/main/java/de/chaos/swlnmngr/Main.java @@ -23,7 +23,7 @@ public class Main { if(CLIConfig.IS_DEBUG) { Configurator.setRootLevel(Level.DEBUG); } - if(!CLIConfig.NO_UPDATE) { + if(CLIConfig.NO_UPDATE) { UpdateChecker.checkForUpdates(); } logger.debug("Arguments: {}", Arrays.toString(allArgs)); diff --git a/src/main/resources/default_swlnmngr.sh b/src/main/resources/default_swlnmngr.sh index 20d6e03..b3f0568 100644 --- a/src/main/resources/default_swlnmngr.sh +++ b/src/main/resources/default_swlnmngr.sh @@ -1,2 +1,3 @@ #!/bin/bash -java -jar ./SteamWarLinkManager.jar $@ \ No newline at end of file +parent_path=$( cd "$(dirname "${BASH_SOURCE[0]}")" ; pwd -P ) +java -jar $parent_path/SteamWarLinkManager.jar $@ \ No newline at end of file