mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
set exit code to 1, if patcher can't apply a patch
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user