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

@ -12,6 +12,10 @@ download_game() {
else
url="https://cdn.vintagestory.at/gamefiles/stable/vs_server_linux-x64_${version}.tar.gz"
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
if [ -d "$extract_path" ] && [ ! -z "$(ls -A "$extract_path")" ]; then