Add a new download path for "pre"?

This commit is contained in:
zontreck 2025-06-29 12:22:12 -07:00
parent 1105b4fe89
commit 41d31e6a30

View file

@ -13,6 +13,10 @@ download_game() {
url="https://cdn.vintagestory.at/gamefiles/stable/vs_server_linux-x64_${version}.tar.gz" url="https://cdn.vintagestory.at/gamefiles/stable/vs_server_linux-x64_${version}.tar.gz"
fi fi
if [[ $version == *"-pre"* ]]; then
url="https://cdn.vintagestory.at/gamefiles/pre/vs_server_linux-x64_${version}.tar.gz"
fi
# Check if extract path already exists and is not empty # Check if extract path already exists and is not empty
if [ -d "$extract_path" ] && [ ! -z "$(ls -A "$extract_path")" ]; then if [ -d "$extract_path" ] && [ ! -z "$(ls -A "$extract_path")" ]; then
echo "Extract path $extract_path already exists and is not empty, skipping download." echo "Extract path $extract_path already exists and is not empty, skipping download."