From 4b86df305fd5b2e517bf2da84e7ea062cdd165f0 Mon Sep 17 00:00:00 2001 From: Kirill Shamilin Date: Sat, 20 Feb 2021 02:04:27 +0300 Subject: [PATCH] fix(ts3server): correct arch var in if statement (#3283) fix update TS3. without these changes i can't use the update function on my i686 system. Did not test it on other systems then Debian 10 i686 --- lgsm/functions/update_ts3.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lgsm/functions/update_ts3.sh b/lgsm/functions/update_ts3.sh index 6e2d4f56b..51192a331 100644 --- a/lgsm/functions/update_ts3.sh +++ b/lgsm/functions/update_ts3.sh @@ -103,9 +103,9 @@ fn_update_ts3_localbuild(){ fn_update_ts3_remotebuild(){ # Gets remote build info. - if [ "${arch}" == "x86_64" ]; then + if [ "${ts3arch}" == "x86_64" ]; then remotebuild=$(curl -s "https://www.teamspeak.com/versions/server.json" | jq -r '.linux.x86_64.version') - elif [ "${arch}" == "x86" ]; then + elif [ "${ts3arch}" == "x86" ]; then remotebuild=$(curl -s "https://www.teamspeak.com/versions/server.json" | jq -r '.linux.x86.version') fi if [ "${firstcommandname}" != "INSTALL" ]; then