From e22568c413ff14d209c3d875cdad34897ee11dd1 Mon Sep 17 00:00:00 2001 From: Andrew Marchukov Date: Fri, 30 Apr 2021 10:00:16 +0300 Subject: [PATCH] fix curl --- AutoUpdater/check-manifest.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/AutoUpdater/check-manifest.sh b/AutoUpdater/check-manifest.sh index fe6169d..872ffc9 100644 --- a/AutoUpdater/check-manifest.sh +++ b/AutoUpdater/check-manifest.sh @@ -2,6 +2,7 @@ rconlist=127.0.0.1:55555,127.0.0.1:44444,127.0.0.1:33333 rconpass=my_rcon_password modio_api_key=my_modio_apikey_!NOT_OAuth2_KEY! + while true; do TOTAL=0 sleep $(((RANDOM % 360) + 60)) @@ -17,7 +18,7 @@ while true; do if [ $EXITSTATUS -eq 0 ]; then #CHECKING ISMC NEW VERSION LOCALMODVER=$(cat /opt/sandstorm-mod.version) - REMOTEMODVER=$(curl -X GET "https://api.mod.io/v1/games/254/mods/150867?api_key=$modio_api_key" -H 'Accept: application/json' | jq -r -e .modfile.filehash.md5) + REMOTEMODVER=$(curl -s -X GET "https://api.mod.io/v1/games/254/mods/150867?api_key=$modio_api_key" -H 'Accept: application/json' | jq -r -e .modfile.filehash.md5) EXITSTATUS=$? if [ $EXITSTATUS -eq 0 ]; then if [[ ("$LOCALAPPVER" != "$REMOTEAPPVER" || "$LOCALMODVER" != "$REMOTEMODVER") ]]; then