Auto-detect and download Benchmark in dev and stag

This commit is contained in:
themodernhakr 2025-03-11 02:04:26 -05:00
parent 4720f63667
commit a0981f0c81

View File

@ -78,6 +78,24 @@ fi
git pull git pull
) )
#
# Import dev-tools
#
if [[ "$ENV" = "dev" || "stag" ]]; then
echo
echo "checking devtools..."
(
source ./config/server-properties/helpers/curl.sh
cd ./world/datapacks
if [[ ! -f benchmark-v2-1-0.zip ]]; then
"missing Benchmark v2, downloading..."
__curl "https://files.ferdin.land/ferdinland/devtools/benchmark-v2-1-0.zip" > benchmark-v2-1-0.zip
fi
)
echo "devltools all good!"
echo
fi
# #
# Copy server-properties # Copy server-properties
# #