From df1c90578b0b0c3dda5498a6bc77ed86bf667629 Mon Sep 17 00:00:00 2001 From: Fabian Schlenz Date: Thu, 12 Apr 2018 06:47:24 +0200 Subject: [PATCH] Disabled version check if version number contains a dash. --- .../de/fabianonline/telegram_backup/CommandLineRunner.kt | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/main/kotlin/de/fabianonline/telegram_backup/CommandLineRunner.kt b/src/main/kotlin/de/fabianonline/telegram_backup/CommandLineRunner.kt index 9c58b0f..eef3e7d 100644 --- a/src/main/kotlin/de/fabianonline/telegram_backup/CommandLineRunner.kt +++ b/src/main/kotlin/de/fabianonline/telegram_backup/CommandLineRunner.kt @@ -87,7 +87,11 @@ class CommandLineRunner(args: Array) { } } - fun checkVersion(): Boolean { + fun checkVersion() { + if (Config.APP_APPVER.contains("-")) { + println("Your version ${Config.APP_APPVER} seems to be a development version. Version check is disabled.") + return + } val v = Utils.getNewestVersion() if (v != null && v.isNewer) { println() @@ -105,8 +109,6 @@ class CommandLineRunner(args: Array) { println() println() TimeUnit.SECONDS.sleep(5) - return false } - return true } }