mirror of
https://hub.spigotmc.org/stash/scm/spigot/buildtools.git
synced 2025-09-18 21:45:56 +00:00
BUILDTOOLS-301: Use sh for all scripts.
This commit is contained in:
parent
4bf25ea519
commit
60cf761351
1 changed files with 7 additions and 12 deletions
|
@ -143,18 +143,13 @@ public class Builder
|
|||
System.err.println( "*** WARNING *** Use java -version to check your version and update as soon as possible." );
|
||||
}
|
||||
|
||||
String shell = System.getenv().get( "SHELL" );
|
||||
if ( shell == null || shell.trim().isEmpty() )
|
||||
try
|
||||
{
|
||||
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 );
|
||||
}
|
||||
runProcess( CWD, "sh", "-c", "exit" );
|
||||
} catch ( Exception ex )
|
||||
{
|
||||
System.out.println( "You must run this jar through bash (msysgit)" );
|
||||
System.exit( 1 );
|
||||
}
|
||||
|
||||
try
|
||||
|
@ -431,7 +426,7 @@ public class Builder
|
|||
|
||||
try
|
||||
{
|
||||
runProcess( spigot, shell, "applyPatches.sh" );
|
||||
runProcess( spigot, "sh", "applyPatches.sh" );
|
||||
System.out.println( "*** Spigot patches applied!" );
|
||||
|
||||
if ( !skipCompile )
|
||||
|
|
Loading…
Add table
Reference in a new issue