Browse Source

Added double quotes, fixed indentation for ts3

pull/1843/merge
UltimateByte 7 years ago
parent
commit
266b9c5471
  1. 10
      lgsm/functions/update_ts3.sh

10
lgsm/functions/update_ts3.sh

@ -87,13 +87,13 @@ fi
fn_update_ts3_availablebuild(){ fn_update_ts3_availablebuild(){
# Gets latest build info. # Gets latest build info.
if [ "${arch}" == "x86_64" ]; then 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 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 fi
ts3_version_number=${availablebuild} ts3_version_number="${availablebuild}"
# Checks if availablebuild variable has been set # Checks if availablebuild variable has been set
if [ "${availablebuild}" == "null" ]; then if [ -z "${availablebuild}" ]||[ "${availablebuild}" == "null" ]; then
fn_print_fail "Checking for update: teamspeak.com" fn_print_fail "Checking for update: teamspeak.com"
sleep 0.5 sleep 0.5
fn_print_fail "Checking for update: teamspeak.com: Not returning version info" fn_print_fail "Checking for update: teamspeak.com: Not returning version info"
@ -211,7 +211,7 @@ if [ "${installer}" == "1" ]; then
else else
fn_update_ts3_availablebuild_legacy fn_update_ts3_availablebuild_legacy
fi fi
fn_update_ts3_dl fn_update_ts3_dl
else else
# Checks for server update from teamspeak.com using a mirror dl.4players.de. # Checks for server update from teamspeak.com using a mirror dl.4players.de.
fn_print_dots "Checking for update: teamspeak.com" fn_print_dots "Checking for update: teamspeak.com"

Loading…
Cancel
Save