Преглед на файлове

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
Kirill Shamilin преди 5 години
родител
ревизия
4b86df305f
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 2 2
      lgsm/functions/update_ts3.sh

+ 2 - 2
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