Verified Commit 7ff6c1e3 authored by Daniel Mangold's avatar Daniel Mangold
Browse files

Minor changes

parent 4a67aed8
......@@ -77,4 +77,6 @@ public class Config {
public static Set<String> getConfigs() {
return Arrays.stream(Config.class.getDeclaredFields()).map(Field::getName).collect(Collectors.toUnmodifiableSet());
}
}
......@@ -41,9 +41,10 @@ public class Utils {
"They will be automatically downloaded when using the installer or when CHECK_FOR_UPDATES and AUTO_UPDATE are true. " +
"Please re-run the tests afterwards.");
if (!CHECK_FOR_UPDATES || !Updater.checkForUpdates())
if (!CHECK_FOR_UPDATES || !Updater.checkForUpdates()) {
System.out.println("Seed: " + SEED);
else
System.out.println("Local tests are up to date");
} else
System.out.println("Updated tests, please re-run");
}
......@@ -224,8 +225,7 @@ public class Utils {
System.out.println("Update available! Local version: " + localVersion + " -- Remote version: " + remoteVersion);
System.out.println("Changelog: " + REPOSITORY_URL + "blob/master/changelog.md");
System.out.println(remoteData.getString("updateMessage"));
} else
System.out.println("Local tests are up to date");
}
if (!(CHECK_HASHES || (AUTO_UPDATE && remoteVersion.compareTo(localVersion) > 0)))
return false;
......@@ -304,8 +304,6 @@ public class Utils {
for (Map.Entry<String, Object> methodEntry : configData.getJSONObject("methods").toMap().entrySet())
configFileContents.append((String) methodEntry.getValue()).append("\n\n");
persistentChanges = true;
try (BufferedWriter writer = new BufferedWriter(new FileWriter(configData.getString("file")))) {
writer.write(configStub.replaceFirst(">>>##<<<", configFileContents.toString()));
}
......
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