|
|
@ -87,12 +87,13 @@ fi |
|
|
|
fn_update_ts3_availablebuild(){ |
|
|
|
# Gets latest build info. |
|
|
|
if [ "${arch}" == "x86_64" ]; then |
|
|
|
availablebuild=$(${curlpath} -s 'https://www.teamspeak.com/versions/server.json' | jq -r '.linux.x86_64.version') |
|
|
|
availablebuild="$(${curlpath} -s 'https://www.teamspeak.com/versions/server.json' | jq -r '.linux.x86_64.version')" |
|
|
|
elif [ "${arch}" == "x86" ]; then |
|
|
|
availablebuild=$(${curlpath} -s 'https://www.teamspeak.com/versions/server.json' | jq -r '.linux.x86.version') |
|
|
|
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 [ -z "${availablebuild}" ]||[ "${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" |
|
|
|