Fixed saving the spigot API instead of the actual server file
This commit is contained in:
@@ -14,10 +14,9 @@ for ver in "${versions[@]}"; do
|
||||
|
||||
mvn -q org.apache.maven.plugins:maven-dependency-plugin:3.9.0:get -Dartifact=org.spigotmc:spigot:${ver}-R0.1-SNAPSHOT
|
||||
|
||||
if [ "$?" -eq 0 ]; then
|
||||
ARTIFACT="spigot-${ver}.jar"
|
||||
if [ "$?" -eq 0 ] && [ -e "/build/$ARTIFACT" ]; then
|
||||
echo "Located spigot $ver successfully"
|
||||
|
||||
mvn -q org.apache.maven.plugins:maven-dependency-plugin:3.9.0:copy -Dartifact=org.spigotmc:spigot:${ver}-R0.1-SNAPSHOT -DoutputDirectory=/build
|
||||
else
|
||||
echo "Spigot $ver not located, building..."
|
||||
if [ ! -d "${HOME}/buildtools" ]; then
|
||||
@@ -29,8 +28,6 @@ for ver in "${versions[@]}"; do
|
||||
|
||||
java -jar BuildTools.jar --rev "$ver"
|
||||
|
||||
ARTIFACT="spigot-${ver}-R0.1-SNAPSHOT.jar"
|
||||
mv "spigot-${ver}.jar" "$ARTIFACT"
|
||||
mv "$ARTIFACT" /build
|
||||
fi
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user