Browse Source

Added double quotes, fixed indentation for ts3

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

8
lgsm/functions/update_ts3.sh

@ -87,13 +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}
ts3_version_number="${availablebuild}"
# 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"
sleep 0.5
fn_print_fail "Checking for update: teamspeak.com: Not returning version info"

Loading…
Cancel
Save