summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main/java/org/spigotmc/builder/Builder.java11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/main/java/org/spigotmc/builder/Builder.java b/src/main/java/org/spigotmc/builder/Builder.java
index 53b6b00..c7e4c39 100644
--- a/src/main/java/org/spigotmc/builder/Builder.java
+++ b/src/main/java/org/spigotmc/builder/Builder.java
@@ -146,8 +146,15 @@ public class Builder
String shell = System.getenv().get( "SHELL" );
if ( shell == null || shell.trim().isEmpty() )
{
- System.out.println( "You must run this jar through bash (msysgit)" );
- System.exit( 1 );
+ shell = "bash";
+ try
+ {
+ runProcess( CWD, shell, "-c", "exit" );
+ } catch ( Exception ex )
+ {
+ System.out.println( "You must run this jar through bash (msysgit)" );
+ System.exit( 1 );
+ }
}
try