From 3369f68d447117c6007f0aa57e1cb805b1b27b10 Mon Sep 17 00:00:00 2001 From: AndrewMarchukov Date: Thu, 14 Jul 2022 15:32:14 +0400 Subject: [PATCH] fixes --- .github/workflows/docker-image.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 6288cb1..f5ed1df 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -17,11 +17,16 @@ jobs: run: | LOCALAPPVER=($(cat sandstorm.version)) REMOTEAPPVER=($(curl -s -X GET 'https://api.steamcmd.net/v1/info/581330' | jq -r -e '.data."581330".depots."581333".manifests.public')) + if [ -z "$REMOTEAPPVER" -a "$REMOTEAPPVER" = " " ]; then + echo "Empty Response" + exit 1 + fi if [[ "$LOCALAPPVER" != "$REMOTEAPPVER" ]]; then - echo "$REMOTEAPPVER" > sandstorm.version - exit 0 + echo "$REMOTEAPPVER" >sandstorm.version + exit 0 else - exit 1 + echo "Download Failed" + exit 1 fi shell: bash -