Unzip and remove Benchmark file

This commit is contained in:
themodernhakr 2025-03-11 02:39:27 -05:00
parent 5c2ae9a668
commit 852649ac04

View File

@ -87,12 +87,15 @@ if [[ "$ENV" = "dev" || "stag" ]]; then
( (
source ./config/server-properties/helpers/curl.sh source ./config/server-properties/helpers/curl.sh
cd ./world/datapacks cd ./world/datapacks
if [[ ! -f benchmark-v2-1-0.zip ]]; then if [[ ! -d "Benchmark" ]]; then
file="benchmark-v2-1-0.zip"
echo "missing Benchmark v2, downloading..." echo "missing Benchmark v2, downloading..."
__curl "http://nginxwebdav:80/ferdinland/devtools/benchmark-v2-1-0.zip" > benchmark-v2-1-0.zip __curl "http://nginxwebdav:80/ferdinland/devtools/benchmark-v2-1-0.zip" > $file
gunzip $file
rm $file
fi fi
) )
echo "devltools all good!" echo "devtools all good!"
echo echo
fi fi