Add a new download path for "pre"?
This commit is contained in:
parent
1105b4fe89
commit
41d31e6a30
1 changed files with 4 additions and 0 deletions
|
@ -13,6 +13,10 @@ download_game() {
|
|||
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
|
||||
echo "Extract path $extract_path already exists and is not empty, skipping download."
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue