Daniel Gibbs 9 лет назад
Родитель
Сommit
e09c5454bd
1 измененных файлов с 3 добавлено и 3 удалено
  1. 3 3
      lgsm/functions/update_ts3.sh

+ 3 - 3
lgsm/functions/update_ts3.sh

@@ -15,7 +15,7 @@ fn_update_ts3_dl(){
 	fn_script_log "Copying to ${filesdir}"
 	fn_script_log "Copying to ${filesdir}"
 	cp -R "${tmpdir}/teamspeak3-server_linux_${ts3arch}/"* "${filesdir}"
 	cp -R "${tmpdir}/teamspeak3-server_linux_${ts3arch}/"* "${filesdir}"
 	local exitcode=$?
 	local exitcode=$?
-	if [ ${exitcode} -eq 0 ]; then
+	if [ "${exitcode}" == "0" ]; then
 		fn_print_ok_eol_nl
 		fn_print_ok_eol_nl
 	else
 	else
 		fn_print_fail_eol_nl
 		fn_print_fail_eol_nl
@@ -23,8 +23,8 @@ fn_update_ts3_dl(){
 }
 }
 
 
 fn_update_ts3_currentbuild(){
 fn_update_ts3_currentbuild(){
-	# Gets currentbuild info
-	# Checks currentbuild info is available, if fails a server restart will be forced to generate logs.
+	# Gets current build info
+	# Checks if current build info is available. If it fails, then a server restart will be forced to generate logs.
 	if [ -z "$(find ./* -name 'ts3server*_0.log')" ]; then
 	if [ -z "$(find ./* -name 'ts3server*_0.log')" ]; then
 		fn_print_error "Checking for update: teamspeak.com"
 		fn_print_error "Checking for update: teamspeak.com"
 		sleep 1
 		sleep 1