From 2cb26df892759497ce4b6b9e4c70bc74d2583d34 Mon Sep 17 00:00:00 2001 From: md_5 Date: Sat, 29 Nov 2014 10:49:54 +1100 Subject: Exit 1 if we fail in the build process --- src/main/java/org/spigotmc/builder/Builder.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/spigotmc/builder/Builder.java b/src/main/java/org/spigotmc/builder/Builder.java index 3c2325f..fb31439 100644 --- a/src/main/java/org/spigotmc/builder/Builder.java +++ b/src/main/java/org/spigotmc/builder/Builder.java @@ -49,7 +49,7 @@ public class Builder { System.out.println( "Sorry, but Macintosh is not currently a supported platform for compilation at this time." ); System.out.println( "Please run this script on a Windows or Linux PC and then copy the jars to this computer." ); - return; + System.exit( 1 ); } try @@ -58,7 +58,7 @@ public class Builder } catch ( Exception ex ) { System.out.println( "You must run this jar through bash (msysgit)" ); - return; + System.exit( 1 ); } try @@ -273,6 +273,7 @@ public class Builder { System.err.println( "Error compiling Spigot, are you running this jar via msysgit?" ); ex.printStackTrace(); + System.exit( 1 ); } } -- cgit v1.2.3