diff --git a/src/main/java/de/rpjosh/installer/InstallConfig.java b/src/main/java/de/rpjosh/installer/InstallConfig.java index 9e3d2d8..d64c933 100644 --- a/src/main/java/de/rpjosh/installer/InstallConfig.java +++ b/src/main/java/de/rpjosh/installer/InstallConfig.java @@ -192,8 +192,6 @@ public class InstallConfig { this.authUsername = basicAuthUser; this.authPassword = basicAuthPassword; this.allowAskForBasicAuth = askForBasicAuth; - - offline = false; } /** @@ -213,8 +211,6 @@ public class InstallConfig { this.urlEnding = end; this.addVersion = true; this.allowAskForBasicAuth = askForBasicAuth; - - offline = false; } /** diff --git a/src/main/java/de/rpjosh/installer/Installer.java b/src/main/java/de/rpjosh/installer/Installer.java index 436da74..82e3ce3 100644 --- a/src/main/java/de/rpjosh/installer/Installer.java +++ b/src/main/java/de/rpjosh/installer/Installer.java @@ -912,7 +912,7 @@ public class Installer { * @param end the file ending (the URL will be set without an file ending) * @param ascForBasicAuth when no basic auth credentials are given and the request gets a 401 response ask the user for credentials at the command line * - * @return the path of the downloaded file (when an error occurred: null + logger.error) + * @return the path of the downloaded file (when an error occurred: null + logger.error) */ private String downloadFile (String url2, boolean addVersion, String end, boolean askForAuth) { @@ -927,7 +927,7 @@ public class Installer { // check if basic auth is required if (con.getResponseCode() == HttpURLConnection.HTTP_UNAUTHORIZED) { if (conf.authUsername == null || conf.authPassword == null) { - if (!askForAuth) { logger.log("e", "Baisc authentication required for downloading the file \"" + serverURL + "\"", ""); System.exit(-1); } + if (!askForAuth) { logger.log("e", "Baisc authentication required for downloading the file \"" + serverURL + "\"", ""); error = -40; return null; } char[] username = conf.authUsername; char[] password = conf.authPassword;