mirror of
https://hub.spigotmc.org/stash/scm/spigot/buildtools.git
synced 2025-08-05 16:59:05 +00:00
SPIGOT-39: Try falling back to bash if no shell set
This commit is contained in:
parent
27d3fbd1af
commit
4bf25ea519
1 changed files with 9 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue