From 4dbfbb17a78c61d0c6c8e9252e08723faf9b8b51 Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Sun, 18 Mar 2018 19:24:41 +0000 Subject: [PATCH] Fixed issue #1852 teamspeak3 line 90: jq: command not found --- lgsm/functions/update_ts3.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lgsm/functions/update_ts3.sh b/lgsm/functions/update_ts3.sh index dc41c5053..c30b15bd1 100644 --- a/lgsm/functions/update_ts3.sh +++ b/lgsm/functions/update_ts3.sh @@ -218,6 +218,10 @@ else fn_script_log_info "Checking for update: teamspeak.com" sleep 1 fn_update_ts3_currentbuild - fn_update_ts3_availablebuild + if [ "$(command -v jq >/dev/null 2>&1)" ]; then + fn_update_ts3_availablebuild + else + fn_update_ts3_availablebuild_legacy + fi fn_update_ts3_compare fi