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
|
@ -12,6 +12,10 @@ download_game() {
|
||||||
else
|
else
|
||||||
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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue