Skip to content

Commit

Permalink
fix null version
Browse files Browse the repository at this point in the history
  • Loading branch information
KagurazakaNyaa authored Oct 14, 2024
1 parent 45129fb commit f464545
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f464545

Please sign in to comment.