From f46454505557bb9bcf825bd5fbb14f5a7fe8fb96 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A5=9E=E6=A5=BD=E5=9D=82=C2=B7=E5=96=B5?= Date: Mon, 14 Oct 2024 18:19:12 +0800 Subject: [PATCH] fix null version --- update.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/update.sh b/update.sh index b4bf366..1b42326 100755 --- a/update.sh +++ b/update.sh @@ -2,6 +2,9 @@ version=$(curl --silent "https://api.steamcmd.net/v1/info/3017300" | jq '.data."3017300".depots.branches.public.buildid' -r) currentversion=$(cat currentversion) echo "currentversion:$currentversion version:$version" +if [[ -z "${version}" ]]; then + exit +fi echo "$version" >currentversion if [[ "$currentversion" == "$version" ]]; then exit