Fixed saving the spigot API instead of the actual server file

This commit is contained in:
2025-11-15 21:14:10 -05:00
parent 6e936a6bd1
commit 3cec026427
4 changed files with 20 additions and 12 deletions

View File

@@ -1,6 +1,6 @@
#!/usr/bin/env bash
if [ "$#" -le 1 ]; then
if [ "$#" -lt 1 ]; then
echo "Using default spigot version 1.21.10"
export REV=1.21.10
else
@@ -8,6 +8,13 @@ else
export REV="$1"
fi
if [ "$#" -lt 1 ]; then
echo "Saving default "
BUILD_DIRECTORY="/build"
else
BUILD_DIRECTORY="$0"
fi
SCRIPT_DIR=$(dirname "$0")
WORKSPACE=$(pwd)
@@ -19,7 +26,7 @@ docker run --rm -it \
-p 25565:25565 \
-e MAVEN_CONFIG=/var/maven/.m2 \
-e M2_PATH=/var/maven/.m2 \
--volume "$SCRIPT_DIR/build:/build" \
--volume "$BUILD_DIRECTORY:/build" \
--volume "$WORKSPACE:/workspace" \
--volume "$M2_DIRECTORY:/var/maven/.m2" \
--volume "$SCRIPT_DIR/scripts:/scripts" \