Verified Commit 95d99556 authored by Daniel Mangold's avatar Daniel Mangold
Browse files

Changed .test_version syntax to allow a custom message to be printed on update

parent d7633d54
......@@ -205,12 +205,14 @@ public class Utils {
}
try (BufferedReader remoteReader = new BufferedReader(new StringReader(response.body()))) {
String[] versionLine = remoteReader.readLine().split(" -- ", 2);
Version localVersion = new Version(LOCAL_VERSION),
remoteVersion = new Version(remoteReader.readLine());
remoteVersion = new Version(versionLine[0]);
if (remoteVersion.compareTo(localVersion) > 0) {
System.out.println("Update available! Local version: " + localVersion + " -- Remote version: " + remoteVersion);
System.out.println("Changelog: " + REPOSITORY_URL + "blob/master/changelog.md");
System.out.println(versionLine[1]);
} else
System.out.println("Local tests are up to date");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment