mirror of
https://github.com/EssentialsX/Essentials.git
synced 2025-01-03 06:57:39 +01:00
Allow using environment variable to set xmx flag
This commit is contained in:
parent
e230cee91e
commit
7838adf833
@ -16,7 +16,13 @@ ensure_buildtools() {
|
||||
|
||||
run_buildtools() {
|
||||
ensure_buildtools
|
||||
# Check if env var isnt empty, then run with xmx flag
|
||||
if [ ! -z "$BUILDTOOLS_XMX" ]; then
|
||||
echo "BUILDTOOLS_XMX Environment variable found. Running BuildTools with -Xmx$BUILDTOOLS_XMX"
|
||||
java -Xmx$BUILDTOOLS_XMX -jar BuildTools.jar --rev $1
|
||||
else
|
||||
java -jar BuildTools.jar --rev $1
|
||||
fi
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "Running BuildTools for CB $1 failed! Aborting."
|
||||
popd
|
||||
|
Loading…
Reference in New Issue
Block a user