set exit code to 1, if patcher can't apply a patch

This commit is contained in:
Konstantin Bulenkov
2016-10-06 19:16:05 +02:00
parent e91d48ca06
commit d357bc3630
+4 -1
View File
@@ -275,7 +275,10 @@ public class Runner {
private static void apply(String jarFile, String destFolder) throws Exception {
logger().info("Applying patch to the " + destFolder);
doInstall(jarFile, new ConsoleUpdaterUI(), destFolder);
final boolean success = doInstall(jarFile, new ConsoleUpdaterUI(), destFolder);
if (!success) {
System.exit(1);
}
}
private static boolean doInstall(String jarFile, UpdaterUI ui, String destFolder) throws OperationCancelledException {