version check

This commit is contained in:
2025-06-10 16:20:47 -07:00
parent da2439f98b
commit 133beaacd5

View File

@@ -2,6 +2,9 @@
# Copyright (c) 2022 fithwum
# All rights reserved
VS_VERSION_2=$(curl -s "http://api.vintagestory.at/${VS_CHANNEL}.json" | jq --raw-output '.linuxserver.urls.cdn')
echo $VS_VERSION_2
CUR_V="$(find /VSserver/server -name server-* | cut -d '-' -f2-)"
if [ ! -z "${VS_VERSION}" ] && [ "${CUR_V}" != "${VS_VERSION}" ]; then
echo "---Static version: ${VS_VERSION} set!---"