Added config option to make ripme always try to update (for testing purposes)

This commit is contained in:
cyian-1756 2018-06-02 16:08:49 -04:00
parent b0bcf506aa
commit 1adc0a9bf7

View File

@ -159,6 +159,10 @@ public class UpdateUtils {
}
private static boolean isNewerVersion(String latestVersion) {
// If we're testing the update utils we want the program to always try to update
if (Utils.getConfigBoolean("testing.always_try_to_update", false)) {
return true;
}
int[] oldVersions = versionStringToInt(getThisJarVersion());
int[] newVersions = versionStringToInt(latestVersion);
if (oldVersions.length < newVersions.length) {