Explorar o código

Fixed version number missing from ts3 download

Daniel Gibbs %!s(int64=8) %!d(string=hai) anos
pai
achega
578b3866b2
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      lgsm/functions/update_ts3.sh

+ 2 - 1
lgsm/functions/update_ts3.sh

@@ -91,8 +91,9 @@ fn_update_ts3_availablebuild(){
 	elif [ "${arch}" == "x86" ]; then
 		availablebuild=$(${curlpath} -s 'https://www.teamspeak.com/versions/server.json' | jq -r '.linux.x86.version')
 	fi
+	ts3_version_number=${availablebuild}
 	# Checks if availablebuild variable has been set
-	if [ -z "${availablebuild}" ]; then
+	if [ "${availablebuild}" == "null" ]; then
 		fn_print_fail "Checking for update: teamspeak.com"
 		sleep 0.5
 		fn_print_fail "Checking for update: teamspeak.com: Not returning version info"