Procházet zdrojové kódy

fix(logs): resolve modulename not showing in logs (#2818)

Daniel Gibbs před 6 roky
rodič
revize
f76cd6b266
84 změnil soubory, kde provedl 121 přidání a 98 odebrání
  1. 1 1
      lgsm/functions/alert_email.sh
  2. 1 1
      lgsm/functions/alert_ifttt.sh
  3. 1 1
      lgsm/functions/alert_mailgun.sh
  4. 1 1
      lgsm/functions/alert_pushbullet.sh
  5. 1 1
      lgsm/functions/alert_pushover.sh
  6. 1 1
      lgsm/functions/alert_telegram.sh
  7. 1 1
      lgsm/functions/command_backup.sh
  8. 1 1
      lgsm/functions/command_console.sh
  9. 1 1
      lgsm/functions/command_debug.sh
  10. 1 1
      lgsm/functions/command_details.sh
  11. 2 2
      lgsm/functions/command_dev_debug.sh
  12. 2 2
      lgsm/functions/command_dev_detect_deps.sh
  13. 2 2
      lgsm/functions/command_dev_detect_glibc.sh
  14. 2 2
      lgsm/functions/command_dev_detect_ldd.sh
  15. 1 1
      lgsm/functions/command_dev_query_raw.sh
  16. 1 1
      lgsm/functions/command_fastdl.sh
  17. 1 1
      lgsm/functions/command_install.sh
  18. 1 1
      lgsm/functions/command_install_resources_mta.sh
  19. 1 1
      lgsm/functions/command_mods_install.sh
  20. 1 1
      lgsm/functions/command_mods_remove.sh
  21. 1 1
      lgsm/functions/command_mods_update.sh
  22. 1 1
      lgsm/functions/command_monitor.sh
  23. 1 1
      lgsm/functions/command_postdetails.sh
  24. 1 1
      lgsm/functions/command_restart.sh
  25. 1 1
      lgsm/functions/command_start.sh
  26. 1 1
      lgsm/functions/command_stop.sh
  27. 1 1
      lgsm/functions/command_test_alert.sh
  28. 1 1
      lgsm/functions/command_ts3_server_pass.sh
  29. 1 1
      lgsm/functions/command_update.sh
  30. 1 1
      lgsm/functions/command_update_linuxgsm.sh
  31. 1 1
      lgsm/functions/command_validate.sh
  32. 1 1
      lgsm/functions/command_wipe.sh
  33. 1 1
      lgsm/functions/compress_unreal2_maps.sh
  34. 1 1
      lgsm/functions/compress_ut99_maps.sh
  35. 1 1
      lgsm/functions/core_dl.sh
  36. 14 1
      lgsm/functions/core_exit.sh
  37. 9 6
      lgsm/functions/core_getopt.sh
  38. 6 6
      lgsm/functions/core_messages.sh
  39. 1 1
      lgsm/functions/fix_arma3.sh
  40. 1 1
      lgsm/functions/fix_csgo.sh
  41. 1 1
      lgsm/functions/fix_dst.sh
  42. 1 1
      lgsm/functions/fix_kf.sh
  43. 1 1
      lgsm/functions/fix_kf2.sh
  44. 3 2
      lgsm/functions/fix_mta.sh
  45. 4 1
      lgsm/functions/fix_nmrih.sh
  46. 1 1
      lgsm/functions/fix_onset.sh
  47. 1 1
      lgsm/functions/fix_ro.sh
  48. 1 1
      lgsm/functions/fix_sfc.sh
  49. 1 1
      lgsm/functions/fix_ss3.sh
  50. 1 1
      lgsm/functions/fix_steamcmd.sh
  51. 1 1
      lgsm/functions/fix_terraria.sh
  52. 1 1
      lgsm/functions/fix_tf2.sh
  53. 1 1
      lgsm/functions/fix_ts3.sh
  54. 1 1
      lgsm/functions/fix_ut.sh
  55. 1 1
      lgsm/functions/fix_ut2k4.sh
  56. 1 1
      lgsm/functions/fix_ut3.sh
  57. 3 0
      lgsm/functions/fix_wurm.sh
  58. 1 1
      lgsm/functions/fix_zmr.sh
  59. 1 1
      lgsm/functions/info_config.sh
  60. 1 1
      lgsm/functions/info_distro.sh
  61. 1 1
      lgsm/functions/info_parms.sh
  62. 1 1
      lgsm/functions/install_complete.sh
  63. 1 1
      lgsm/functions/install_config.sh
  64. 1 1
      lgsm/functions/install_dst_token.sh
  65. 1 1
      lgsm/functions/install_gslt.sh
  66. 1 1
      lgsm/functions/install_header.sh
  67. 1 1
      lgsm/functions/install_logs.sh
  68. 1 1
      lgsm/functions/install_mta_resources.sh
  69. 1 1
      lgsm/functions/install_retry.sh
  70. 1 1
      lgsm/functions/install_server_dir.sh
  71. 1 1
      lgsm/functions/install_server_files.sh
  72. 1 1
      lgsm/functions/install_squad_license.sh
  73. 1 1
      lgsm/functions/install_stats.sh
  74. 1 1
      lgsm/functions/install_ts3db.sh
  75. 1 1
      lgsm/functions/install_ut2k4_key.sh
  76. 1 1
      lgsm/functions/mods_core.sh
  77. 1 1
      lgsm/functions/mods_list.sh
  78. 1 1
      lgsm/functions/update_factorio.sh
  79. 1 1
      lgsm/functions/update_minecraft.sh
  80. 1 1
      lgsm/functions/update_minecraft_bedrock.sh
  81. 1 1
      lgsm/functions/update_mta.sh
  82. 1 1
      lgsm/functions/update_mumble.sh
  83. 1 1
      lgsm/functions/update_steamcmd.sh
  84. 1 1
      lgsm/functions/update_ts3.sh

+ 1 - 1
lgsm/functions/alert_email.sh

@@ -6,7 +6,7 @@
 
 local modulename="ALERT"
 local commandaction="Alert"
-local function_selfname=$(basename "$(readlink -f "${BASH_SOURCE[0]}")")
+local function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
 
 fn_print_dots "Sending Email alert: ${email}"
 fn_sleep_time

+ 1 - 1
lgsm/functions/alert_ifttt.sh

@@ -6,7 +6,7 @@
 
 local modulename="ALERT"
 local commandaction="Alert"
-local function_selfname=$(basename "$(readlink -f "${BASH_SOURCE[0]}")")
+local function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
 
 json=$(cat <<EOF
 {

+ 1 - 1
lgsm/functions/alert_mailgun.sh

@@ -6,7 +6,7 @@
 
 local modulename="ALERT"
 local commandaction="Alert"
-local function_selfname=$(basename "$(readlink -f "${BASH_SOURCE[0]}")")
+local function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
 
 fn_print_dots "Sending Email alert: Mailgun: ${email}"
 

+ 1 - 1
lgsm/functions/alert_pushbullet.sh

@@ -6,7 +6,7 @@
 
 local modulename="ALERT"
 local commandaction="Alert"
-local function_selfname=$(basename "$(readlink -f "${BASH_SOURCE[0]}")")
+local function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
 
 json=$(cat <<EOF
 {

+ 1 - 1
lgsm/functions/alert_pushover.sh

@@ -6,7 +6,7 @@
 
 local modulename="ALERT"
 local commandaction="Alert"
-local function_selfname=$(basename "$(readlink -f "${BASH_SOURCE[0]}")")
+local function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
 
 fn_print_dots "Sending Pushover alert"
 

+ 1 - 1
lgsm/functions/alert_telegram.sh

@@ -6,7 +6,7 @@
 
 local modulename="ALERT"
 local commandaction="Alert"
-local function_selfname=$(basename "$(readlink -f "${BASH_SOURCE[0]}")")
+local function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
 
 json=$(cat <<EOF
 {

+ 1 - 1
lgsm/functions/command_backup.sh

@@ -7,7 +7,7 @@
 
 local modulename="BACKUP"
 local commandaction="Backup"
-local function_selfname=$(basename "$(readlink -f "${BASH_SOURCE[0]}")")
+local function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
 
 check.sh
 

+ 1 - 1
lgsm/functions/command_console.sh

@@ -6,7 +6,7 @@
 
 local modulename="CONSOLE"
 local commandaction="Console"
-local function_selfname=$(basename "$(readlink -f "${BASH_SOURCE[0]}")")
+local function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
 
 check.sh
 fn_print_header

+ 1 - 1
lgsm/functions/command_debug.sh

@@ -6,7 +6,7 @@
 
 local modulename="DEBUG"
 local commandaction="Debug"
-local function_selfname=$(basename "$(readlink -f "${BASH_SOURCE[0]}")")
+local function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
 
 # Trap to remove lockfile on quit.
 fn_lockfile_trap(){

+ 1 - 1
lgsm/functions/command_details.sh

@@ -7,7 +7,7 @@
 
 local modulename="DETAILS"
 local commandaction="Details"
-local function_selfname=$(basename "$(readlink -f "${BASH_SOURCE[0]}")")
+local function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
 
 # Run checks and gathers details to display.
 check.sh

+ 2 - 2
lgsm/functions/command_dev_debug.sh

@@ -5,8 +5,8 @@
 # Description: Dev only: Enables debugging log to be saved to dev-debug.log.
 
 local modulename="DEV-DEBUG"
-local commandaction="Dev-Debug"
-local function_selfname=$(basename "$(readlink -f "${BASH_SOURCE[0]}")")
+local commandaction="Dev Debug"
+local function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
 
 if [ -f "${rootdir}/.dev-debug" ]; then
 	rm "${rootdir:?}/.dev-debug"

+ 2 - 2
lgsm/functions/command_dev_detect_deps.sh

@@ -5,8 +5,8 @@
 # Description: Detects dependencies the server binary requires.
 
 local modulename="DETECT-DEPS"
-local commandaction="Detect-Deps"
-local function_selfname=$(basename "$(readlink -f "${BASH_SOURCE[0]}")")
+local commandaction="Detect Deps"
+local function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
 
 echo -e "================================="
 echo -e "Dependencies Checker"

+ 2 - 2
lgsm/functions/command_dev_detect_glibc.sh

@@ -6,8 +6,8 @@
 # Can check a file or directory recursively.
 
 local modulename="DETECT-GLIBC"
-local commandaction="Detect-Glibc"
-local function_selfname=$(basename "$(readlink -f "${BASH_SOURCE[0]}")")
+local commandaction="Detect Glibc"
+local function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
 
 echo -e "================================="
 echo -e "glibc Requirements Checker"

+ 2 - 2
lgsm/functions/command_dev_detect_ldd.sh

@@ -6,8 +6,8 @@
 # Can check a file or directory recursively.
 
 local modulename="DETECT-LDD"
-local commandaction="Detect-LDD"
-local function_selfname=$(basename "$(readlink -f "${BASH_SOURCE[0]}")")
+local commandaction="Detect LDD"
+local function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
 
 echo -e "================================="
 echo -e "Shared Object dependencies Checker"

+ 1 - 1
lgsm/functions/command_dev_query_raw.sh

@@ -6,7 +6,7 @@
 
 local modulename="QUERY-RAW"
 local commandaction="Query Raw"
-local function_selfname=$(basename "$(readlink -f "${BASH_SOURCE[0]}")")
+local function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
 
 echo -e ""
 echo -e "Query Port - Raw Output"

+ 1 - 1
lgsm/functions/command_fastdl.sh

@@ -7,7 +7,7 @@
 
 local modulename="FASTDL"
 local commandaction="FastDL"
-local function_selfname=$(basename "$(readlink -f "${BASH_SOURCE[0]}")")
+local function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
 
 check.sh
 

+ 1 - 1
lgsm/functions/command_install.sh

@@ -7,7 +7,7 @@
 
 local modulename="INSTALL"
 local commandaction="Install"
-local function_selfname=$(basename "$(readlink -f "${BASH_SOURCE[0]}")")
+local function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
 
 check.sh
 if [ "$(whoami)" = "root" ]; then

+ 1 - 1
lgsm/functions/command_install_resources_mta.sh

@@ -6,7 +6,7 @@
 
 local modulename="DEFAULT_RESOURCES"
 local commandaction="Default Resources"
-local function_selfname=$(basename "$(readlink -f "${BASH_SOURCE[0]}")")
+local function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
 
 fn_install_resources(){
 	echo -e ""

+ 1 - 1
lgsm/functions/command_mods_install.sh

@@ -7,7 +7,7 @@
 
 local modulename="MODS"
 local commandaction="addons/mods"
-local function_selfname=$(basename "$(readlink -f "${BASH_SOURCE[0]}")")
+local function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
 
 check.sh
 mods_core.sh

+ 1 - 1
lgsm/functions/command_mods_remove.sh

@@ -7,7 +7,7 @@
 
 local modulename="MODS"
 local commandaction="Mods Remove"
-local function_selfname=$(basename "$(readlink -f "${BASH_SOURCE[0]}")")
+local function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
 
 check.sh
 mods_core.sh

+ 1 - 1
lgsm/functions/command_mods_update.sh

@@ -7,7 +7,7 @@
 
 local modulename="MODS"
 local commandaction="Mods Update"
-local function_selfname=$(basename "$(readlink -f "${BASH_SOURCE[0]}")")
+local function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
 
 check.sh
 mods_core.sh

+ 1 - 1
lgsm/functions/command_monitor.sh

@@ -8,7 +8,7 @@
 
 local modulename="MONITOR"
 local commandaction="Monitor"
-local function_selfname=$(basename "$(readlink -f "${BASH_SOURCE[0]}")")
+local function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
 
 fn_monitor_check_lockfile(){
 	# Monitor does not run it lockfile is not found.

+ 1 - 1
lgsm/functions/command_postdetails.sh

@@ -7,7 +7,7 @@
 
 local modulename="POSTDETAILS"
 local commandaction="Postdetails"
-local function_selfname=$(basename "$(readlink -f "${BASH_SOURCE[0]}")")
+local function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
 
 # Set posttarget to the appropriately-defined post destination.
 

+ 1 - 1
lgsm/functions/command_restart.sh

@@ -6,7 +6,7 @@
 
 local modulename="RESTART"
 local commandaction="Restarting"
-local function_selfname=$(basename "$(readlink -f "${BASH_SOURCE[0]}")")
+local function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
 
 info_config.sh
 exitbypass=1

+ 1 - 1
lgsm/functions/command_start.sh

@@ -7,7 +7,7 @@
 
 local modulename="START"
 local commandaction="Starting"
-local function_selfname=$(basename "$(readlink -f "${BASH_SOURCE[0]}")")
+local function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
 
 fn_start_teamspeak3(){
 	if [ ! -f "${servercfgfullpath}" ]; then

+ 1 - 1
lgsm/functions/command_stop.sh

@@ -7,7 +7,7 @@
 
 local modulename="STOP"
 local commandaction="Stopping"
-local function_selfname=$(basename "$(readlink -f "${BASH_SOURCE[0]}")")
+local function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
 
 # Attempts graceful shutdown by sending 'CTRL+c'.
 fn_stop_graceful_ctrlc(){

+ 1 - 1
lgsm/functions/command_test_alert.sh

@@ -6,7 +6,7 @@
 
 local modulename="ALERT"
 local commandaction="Alert"
-local function_selfname=$(basename "$(readlink -f "${BASH_SOURCE[0]}")")
+local function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
 
 fn_print_dots "${servername}"
 check.sh

+ 1 - 1
lgsm/functions/command_ts3_server_pass.sh

@@ -7,7 +7,7 @@
 
 local modulename="PASSWORD-CHANGE"
 local commandaction="Password Change"
-local function_selfname=$(basename "$(readlink -f "${BASH_SOURCE[0]}")")
+local function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
 
 fn_serveradmin_password_prompt(){
 	fn_print_header

+ 1 - 1
lgsm/functions/command_update.sh

@@ -6,7 +6,7 @@
 
 local modulename="UPDATE"
 local commandaction="Update"
-local function_selfname=$(basename "$(readlink -f "${BASH_SOURCE[0]}")")
+local function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
 
 fn_print_dots ""
 check.sh

+ 1 - 1
lgsm/functions/command_update_linuxgsm.sh

@@ -6,7 +6,7 @@
 
 local modulename="UPDATE LINUXGSM"
 local commandaction="Update LinuxGSM"
-local function_selfname=$(basename "$(readlink -f "${BASH_SOURCE[0]}")")
+local function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
 
 fn_print_dots "Updating LinuxGSM"
 check.sh

+ 1 - 1
lgsm/functions/command_validate.sh

@@ -6,7 +6,7 @@
 
 local modulename="VALIDATE"
 local commandaction="Validate"
-local function_selfname=$(basename "$(readlink -f "${BASH_SOURCE[0]}")")
+local function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
 
 fn_validate(){
 	fn_script_log_warn "Validating server: SteamCMD: Validate might overwrite some customised files"

+ 1 - 1
lgsm/functions/command_wipe.sh

@@ -7,7 +7,7 @@
 
 local modulename="WIPE"
 local commandaction="Wipe"
-local function_selfname=$(basename "$(readlink -f "${BASH_SOURCE[0]}")")
+local function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
 
 check.sh
 fn_print_header

+ 1 - 1
lgsm/functions/compress_unreal2_maps.sh

@@ -5,7 +5,7 @@
 # Description: Compresses unreal maps.
 
 local commandaction="Unreal Map Compressor"
-local function_selfname=$(basename "$(readlink -f "${BASH_SOURCE[0]}")")
+local function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
 
 check.sh
 fn_print_header

+ 1 - 1
lgsm/functions/compress_ut99_maps.sh

@@ -5,7 +5,7 @@
 # Description: Compresses unreal maps.
 
 local commandaction="Unreal Map Compressor"
-local function_selfname=$(basename "$(readlink -f "${BASH_SOURCE[0]}")")
+local function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
 
 check.sh
 fn_print_header

+ 1 - 1
lgsm/functions/core_dl.sh

@@ -19,7 +19,7 @@
 
 local modulename="DOWNLOAD"
 local commandaction="Download"
-local function_selfname=$(basename "$(readlink -f "${BASH_SOURCE[0]}")")
+local function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
 
 # Emptys contents of the LinuxGSM tmpdir.
 fn_clear_tmp(){

+ 14 - 1
lgsm/functions/core_exit.sh

@@ -23,6 +23,8 @@ fi
 if [ "${exitbypass}" ]; then
 	unset exitbypass
 elif [ "${exitcode}" ]&&[ "${exitcode}" != "0" ]; then
+	# List LinuxGSM version in logs
+	fn_script_log_info "LinuxGSM version: ${version}"
 	if [ "${exitcode}" == "1" ]; then
 		fn_script_log_fatal "${function_selfname} exiting with code: ${exitcode}"
 	elif [ "${exitcode}" == "2" ]; then
@@ -36,10 +38,21 @@ elif [ "${exitcode}" ]&&[ "${exitcode}" != "0" ]; then
 	# remove trap.
 	trap - INT
 	exit "${exitcode}"
-else
+elif [ "${exitcode}" ]&&[ "${exitcode}" == "0" ]; then
+	# List LinuxGSM version in logs
+	fn_script_log_info "LinuxGSM version: ${version}"
 	fn_script_log_pass "${function_selfname} exiting with code: ${exitcode}"
 	fn_exit_dev_debug
 	# remove trap.
 	trap - INT
 	exit "${exitcode}"
+else
+	# List LinuxGSM version in logs
+	fn_script_log_info "LinuxGSM version: ${version}"
+	fn_print_error "No exit code set"
+	fn_script_log_pass "${function_selfname} exiting with code: NOT SET"
+	fn_exit_dev_debug
+	# remove trap.
+	trap - INT
+	exit "${exitcode}"
 fi

+ 9 - 6
lgsm/functions/core_getopt.sh

@@ -4,7 +4,7 @@
 # Website: https://linuxgsm.com
 # Description: getopt arguments.
 
-local function_selfname=$(basename "$(readlink -f "${BASH_SOURCE[0]}")")
+local function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
 
 ### Define all commands here.
 ## User commands | Trigger commands | Description
@@ -167,14 +167,15 @@ fn_opt_usage(){
 		fi
 	done
 	} | column -s $'\t' -t
+	fn_script_log_pass "Display commands"
 	core_exit.sh
 }
 
-# Check if user commands exist and run corresponding scripts, or display script usage.
+# Check if command existw and run corresponding scripts, or display script usage.
 if [ -z "${getopt}" ]; then
 	fn_opt_usage
 fi
-# Command exists.
+# If command exists.
 for i in "${optcommands[@]}"; do
 	if [ "${i}" == "${getopt}" ] ; then
 		# Seek and run command.
@@ -185,8 +186,10 @@ for i in "${optcommands[@]}"; do
 				if [ "$(echo -e "${currentopt[index]}" | awk -F ';' -v x=${currcmdindex} '{ print $x }')" == "${getopt}" ]; then
 					# Run command.
 					eval "${currentopt[index+1]}"
+					# Exit should occur in modules. Should this not happen print an error
+					fn_print_error2_nl "Command did not exit correctly: ${getopt}"
+					fn_script_log_error "Command did not exit correctly: ${getopt}"
 					core_exit.sh
-					break
 				fi
 			done
 		done
@@ -194,7 +197,7 @@ for i in "${optcommands[@]}"; do
 done
 
 # If we're executing this, it means command was not found.
-echo -e "${red}Unknown command${default}: $0 ${getopt}"
-exitcode=2
+fn_print_error2_nl "Unknown command: $0 ${getopt}"
+fn_script_log_error "Unknown command: $0 ${getopt}"
 fn_opt_usage
 core_exit.sh

+ 6 - 6
lgsm/functions/core_messages.sh

@@ -47,7 +47,7 @@ fn_sleep_time(){
 fn_script_log(){
 	if [ -d "${lgsmlogdir}" ]; then
 		if [ "${modulename}" ]; then
-			echo -e "$(date '+%b %d %H:%M:%S.%3N') ${selfname}: ${commandname}: ${1}" >> "${lgsmlog}"
+			echo -e "$(date '+%b %d %H:%M:%S.%3N') ${selfname}: ${modulename}: ${1}" >> "${lgsmlog}"
 		else
 			echo -e "$(date '+%b %d %H:%M:%S.%3N') ${selfname}: ${1}" >> "${lgsmlog}"
 		fi
@@ -59,7 +59,7 @@ fn_script_log_pass(){
 	if [ -d "${lgsmlogdir}" ]; then
 
 		if [ "${modulename}" ]; then
-			echo -e "$(date '+%b %d %H:%M:%S.%3N') ${selfname}: ${commandname}: PASS: ${1}" >> "${lgsmlog}"
+			echo -e "$(date '+%b %d %H:%M:%S.%3N') ${selfname}: ${modulename}: PASS: ${1}" >> "${lgsmlog}"
 		else
 			echo -e "$(date '+%b %d %H:%M:%S.%3N') ${selfname}: PASS: ${1}" >> "${lgsmlog}"
 		fi
@@ -71,7 +71,7 @@ fn_script_log_pass(){
 fn_script_log_fatal(){
 	if [ -d "${lgsmlogdir}" ]; then
 		if [ "${modulename}" ]; then
-			echo -e "$(date '+%b %d %H:%M:%S.%3N') ${selfname}: ${commandname}: FATAL: ${1}" >> "${lgsmlog}"
+			echo -e "$(date '+%b %d %H:%M:%S.%3N') ${selfname}: ${modulename}: FATAL: ${1}" >> "${lgsmlog}"
 		else
 			echo -e "$(date '+%b %d %H:%M:%S.%3N') ${selfname}: FATAL: ${1}" >> "${lgsmlog}"
 		fi
@@ -83,7 +83,7 @@ fn_script_log_fatal(){
 fn_script_log_error(){
 	if [ -d "${lgsmlogdir}" ]; then
 		if [ "${modulename}" ]; then
-			echo -e "$(date '+%b %d %H:%M:%S.%3N') ${selfname}: ${commandname}: ERROR: ${1}" >> "${lgsmlog}"
+			echo -e "$(date '+%b %d %H:%M:%S.%3N') ${selfname}: ${modulename}: ERROR: ${1}" >> "${lgsmlog}"
 		else
 			echo -e "$(date '+%b %d %H:%M:%S.%3N') ${selfname}: ERROR: ${1}" >> "${lgsmlog}"
 		fi
@@ -95,7 +95,7 @@ fn_script_log_error(){
 fn_script_log_warn(){
 	if [ -d "${lgsmlogdir}" ]; then
 		if [ "${modulename}" ]; then
-			echo -e "$(date '+%b %d %H:%M:%S.%3N') ${selfname}: ${commandname}: WARN: ${1}" >> "${lgsmlog}"
+			echo -e "$(date '+%b %d %H:%M:%S.%3N') ${selfname}: ${modulename}: WARN: ${1}" >> "${lgsmlog}"
 		else
 			echo -e "$(date '+%b %d %H:%M:%S.%3N') ${selfname}: WARN: ${1}" >> "${lgsmlog}"
 		fi
@@ -107,7 +107,7 @@ fn_script_log_warn(){
 fn_script_log_info(){
 	if [ -d "${lgsmlogdir}" ]; then
 		if [ "${modulename}" ]; then
-			echo -e "$(date '+%b %d %H:%M:%S.%3N') ${selfname}: ${commandname}: INFO: ${1}" >> "${lgsmlog}"
+			echo -e "$(date '+%b %d %H:%M:%S.%3N') ${selfname}: ${modulename}: INFO: ${1}" >> "${lgsmlog}"
 		else
 			echo -e "$(date '+%b %d %H:%M:%S.%3N') ${selfname}: INFO: ${1}" >> "${lgsmlog}"
 		fi

+ 1 - 1
lgsm/functions/fix_arma3.sh

@@ -6,7 +6,7 @@
 
 local modulename="FIX"
 local commandaction="Fix"
-local function_selfname=$(basename "$(readlink -f "${BASH_SOURCE[0]}")")
+local function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
 
 # Fixes: 20150 Segmentation fault (core dumped) error.
 if [ ! -d "${HOME}/.local/share/Arma 3" ]||[ ! -d "${HOME}/.local/share/Arma 3 - Other Profiles" ]; then

+ 1 - 1
lgsm/functions/fix_csgo.sh

@@ -6,7 +6,7 @@
 
 local modulename="FIX"
 local commandaction="Fix"
-local function_selfname=$(basename "$(readlink -f "${BASH_SOURCE[0]}")")
+local function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
 
 # Fixes: server not always creating steam_appid.txt file.
 if [ ! -f "${serverfiles}/steam_appid.txt" ]; then

+ 1 - 1
lgsm/functions/fix_dst.sh

@@ -6,7 +6,7 @@
 
 local modulename="FIX"
 local commandaction="Fix"
-local function_selfname=$(basename "$(readlink -f "${BASH_SOURCE[0]}")")
+local function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
 
 # Fixes: ./dontstarve_dedicated_server_nullrenderer: ./lib32/libcurl-gnutls.so.4: no version information available (required by ./dontstarve_dedicated_server_nullrenderer).
 # Issue only occures on CentOS as libcurl-gnutls.so.4 is called libcurl.so.4 on CentOS.

+ 1 - 1
lgsm/functions/fix_kf.sh

@@ -6,7 +6,7 @@
 
 local modulename="FIX"
 local commandaction="Fix"
-local function_selfname=$(basename "$(readlink -f "${BASH_SOURCE[0]}")")
+local function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
 
 echo -e "Applying WebAdmin ROOst.css fix."
 echo -e "http://forums.tripwireinteractive.com/showpost.php?p=585435&postcount=13"

+ 1 - 1
lgsm/functions/fix_kf2.sh

@@ -6,7 +6,7 @@
 
 local modulename="FIX"
 local commandaction="Fix"
-local function_selfname=$(basename "$(readlink -f "${BASH_SOURCE[0]}")")
+local function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
 
 fn_parms(){
 parms="\"${defaultmap}?Game=KFGameContent.KFGameInfo_VersusSurvival\""

+ 3 - 2
lgsm/functions/fix_mta.sh

@@ -4,9 +4,10 @@
 # Contributor: ChaosMTA
 # Website: https://linuxgsm.com
 # Description: Installs the libmysqlclient for database functions on the server
-local commandname="FIX"
+
+local modulename="FIX"
 local commandaction="Fix"
-local function_selfname=$(basename "$(readlink -f "${BASH_SOURCE[0]}")")
+local function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
 
 if [ ! -f "${lgsmdir}/lib/libmysqlclient.so.16" ]; then
 	fixname="libmysqlclient16"

+ 4 - 1
lgsm/functions/fix_nmrih.sh

@@ -4,10 +4,13 @@
 # Description: Create symlinks for renamed No More Room In Hell serverfiles
 # Solution from Steam Community post: https://steamcommunity.com/app/224260/discussions/2/1732089092441769414/
 
+local modulename="FIX"
+local commandaction="Fix"
+
 ln -s "${serverfiles}/bin/vphysics_srv.so" "${serverfiles}/bin/vphysics.so"
 ln -s "${serverfiles}/bin/studiorender_srv.so" "${serverfiles}/bin/studiorender.so"
 ln -s "${serverfiles}/bin/soundemittersystem_srv.so" "${serverfiles}/bin/soundemittersystem.so"
 ln -s "${serverfiles}/bin/shaderapiempty_srv.so" "${serverfiles}/bin/shaderapiempty.so"
 ln -s "${serverfiles}/bin/scenefilecache_srv.so" "${serverfiles}/bin/scenefilecache.so"
 ln -s "${serverfiles}/bin/replay_srv.so" "${serverfiles}/bin/replay.so"
-ln -s "${serverfiles}/bin/materialsystem_srv.so" "${serverfiles}/bin/materialsystem.so" 
+ln -s "${serverfiles}/bin/materialsystem_srv.so" "${serverfiles}/bin/materialsystem.so"

+ 1 - 1
lgsm/functions/fix_onset.sh

@@ -6,7 +6,7 @@
 
 local modulename="FIX"
 local commandaction="Fix"
-local function_selfname=$(basename "$(readlink -f "${BASH_SOURCE[0]}")")
+local function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
 
 export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:${serverfiles}"
 

+ 1 - 1
lgsm/functions/fix_ro.sh

@@ -6,7 +6,7 @@
 
 local modulename="FIX"
 local commandaction="Fix"
-local function_selfname=$(basename "$(readlink -f "${BASH_SOURCE[0]}")")
+local function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
 
 echo -e "Applying WebAdmin ROOst.css fix."
 echo -e "http://forums.tripwireinteractive.com/showpost.php?p=585435&postcount=13"

+ 1 - 1
lgsm/functions/fix_sfc.sh

@@ -6,7 +6,7 @@
 
 local modulename="FIX"
 local commandaction="Fix"
-local function_selfname=$(basename "$(readlink -f "${BASH_SOURCE[0]}")")
+local function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
 
 if [ ! -f "${serverfiles}/bin/datacache.so" ]; then
 	ln -s "${serverfiles}/bin/datacache_srv.so" "${serverfiles}/bin/datacache.so"

+ 1 - 1
lgsm/functions/fix_ss3.sh

@@ -6,7 +6,7 @@
 
 local modulename="FIX"
 local commandaction="Fix"
-local function_selfname=$(basename "$(readlink -f "${BASH_SOURCE[0]}")")
+local function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
 
 # Fixes https://steamcommunity.com/app/41070/discussions/0/353916981477716386/
 if [ "$(diff "${HOME}/.steam/steamcmd/linux32/steamclient.so" "${serverfiles}/Bin/steamclient.so" >/dev/null)" ]; then

+ 1 - 1
lgsm/functions/fix_steamcmd.sh

@@ -6,7 +6,7 @@
 
 local modulename="FIX"
 local commandaction="Fix"
-function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
+local function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
 
 # Fixes: [S_API FAIL] SteamAPI_Init() failed; unable to locate a running instance of Steam,or a local steamclient.so.
 if [ ! -f "${HOME}/.steam/sdk32/steamclient.so" ]; then

+ 1 - 1
lgsm/functions/fix_terraria.sh

@@ -6,6 +6,6 @@
 
 local modulename="FIX"
 local commandaction="Fix"
-local function_selfname=$(basename "$(readlink -f "${BASH_SOURCE[0]}")")
+local function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
 
 export TERM=xterm

+ 1 - 1
lgsm/functions/fix_tf2.sh

@@ -6,7 +6,7 @@
 
 local modulename="FIX"
 local commandaction="Fix"
-local function_selfname=$(basename "$(readlink -f "${BASH_SOURCE[0]}")")
+local function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
 
 # Fixes: Team Fortress 2 Segmentation fault for Red-Hat Distros #2062.
 if [ -f "/etc/redhat-release" ]&&[ ! -f "${serverfiles}/bin/libcurl-gnutls.so.4" ]; then

+ 1 - 1
lgsm/functions/fix_ts3.sh

@@ -6,7 +6,7 @@
 
 local modulename="FIX"
 local commandaction="Fix"
-local function_selfname=$(basename "$(readlink -f "${BASH_SOURCE[0]}")")
+local function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
 
 # Fixes: makes libmariadb2 available #1924.
 if [ ! -f "${serverfiles}/libmariadb.so.2" ]; then

+ 1 - 1
lgsm/functions/fix_ut.sh

@@ -6,7 +6,7 @@
 
 local modulename="FIX"
 local commandaction="Fix"
-local function_selfname=$(basename "$(readlink -f "${BASH_SOURCE[0]}")")
+local function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
 
 #Set Binary Executable
 echo -e "chmod +x ${executabledir}/${executable}"

+ 1 - 1
lgsm/functions/fix_ut2k4.sh

@@ -6,7 +6,7 @@
 
 local modulename="FIX"
 local commandaction="Fix"
-local function_selfname=$(basename "$(readlink -f "${BASH_SOURCE[0]}")")
+local function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
 
 echo -e "applying WebAdmin ut2003.css fix."
 echo -e "http://forums.tripwireinteractive.com/showpost.php?p=585435&postcount=13"

+ 1 - 1
lgsm/functions/fix_ut3.sh

@@ -6,7 +6,7 @@
 
 local modulename="FIX"
 local commandaction="Fix"
-local function_selfname=$(basename "$(readlink -f "${BASH_SOURCE[0]}")")
+local function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
 
 fn_parms(){
 parms="server VCTF-Suspense?Game=UTGameContent.UTVehicleCTFGame_Content?bIsDedicated=true?bIsLanMatch=false?bUsesStats=false?bShouldAdvertise=false?PureServer=1?bAllowJoinInProgress=true?ConfigSubDir=${selfname} -port=${port} -queryport=${queryport} -multihome=${ip} -nohomedir -unattended -log=${gamelog}"

+ 3 - 0
lgsm/functions/fix_wurm.sh

@@ -4,6 +4,9 @@
 # Website: https://linuxgsm.com
 # Description: Resolves various issues with ARK: Survival Evolved.
 
+local modulename="FIX"
+local commandaction="Fix"
+
 # Copies steamclient.so to correct location.
 if [ ! -f "${serverfiles}/nativelibs" ]; then
 	cp -f "${serverfiles}/linux64/steamclient.so" "${serverfiles}/nativelibs"

+ 1 - 1
lgsm/functions/fix_zmr.sh

@@ -6,7 +6,7 @@
 
 local modulename="FIX"
 local commandaction="Fix"
-local function_selfname=$(basename "$(readlink -f "${BASH_SOURCE[0]}")")
+local function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
 
 if [ ! -f "${serverfiles}/bin/datacache.so" ]; then
 	ln -s "${serverfiles}/bin/datacache_srv.so" "${serverfiles}/bin/datacache.so"

+ 1 - 1
lgsm/functions/info_config.sh

@@ -5,7 +5,7 @@
 # Website: https://linuxgsm.com
 # Description: Gets specific details from config files.
 
-local function_selfname=$(basename "$(readlink -f "${BASH_SOURCE[0]}")")
+local function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
 
 ## Examples of filtering to get info from config files.
 # sed 's/foo//g' - remove foo

+ 1 - 1
lgsm/functions/info_distro.sh

@@ -5,7 +5,7 @@
 # Description: Variables providing useful info on the Operating System such as disk and performace info.
 # Used for command_details.sh, command_debug.sh and alert.sh.
 
-local function_selfname=$(basename "$(readlink -f "${BASH_SOURCE[0]}")")
+local function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
 
 ### Game Server pid
 if [ "${status}" == "1" ]; then

+ 1 - 1
lgsm/functions/info_parms.sh

@@ -4,7 +4,7 @@
 # Website: https://linuxgsm.com
 # Description: If specific parms are not set then this will be displayed in details.
 
-local function_selfname=$(basename "$(readlink -f "${BASH_SOURCE[0]}")")
+local function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
 
 ## Examples of filtering to get info from config files
 # sed 's/foo//g' - remove foo

+ 1 - 1
lgsm/functions/install_complete.sh

@@ -6,7 +6,7 @@
 
 local modulename="INSTALL"
 local commandaction="Install"
-local function_selfname=$(basename "$(readlink -f "${BASH_SOURCE[0]}")")
+local function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
 
 echo -e ""
 echo -e "================================="

+ 1 - 1
lgsm/functions/install_config.sh

@@ -6,7 +6,7 @@
 
 local modulename="INSTALL"
 local commandaction="Install"
-local function_selfname=$(basename "$(readlink -f "${BASH_SOURCE[0]}")")
+local function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
 
 # Checks if server cfg dir exists, creates it if it doesn't.
 fn_check_cfgdir(){

+ 1 - 1
lgsm/functions/install_dst_token.sh

@@ -6,7 +6,7 @@
 
 local modulename="INSTALL"
 local commandaction="Install"
-local function_selfname=$(basename "$(readlink -f "${BASH_SOURCE[0]}")")
+local function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
 
 echo -e ""
 echo -e "${lightyellow}Enter ${gamename} Cluster Token${default}"

+ 1 - 1
lgsm/functions/install_gslt.sh

@@ -6,7 +6,7 @@
 
 local modulename="INSTALL"
 local commandaction="Install"
-local function_selfname=$(basename "$(readlink -f "${BASH_SOURCE[0]}")")
+local function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
 
 echo -e ""
 echo -e "${lightyellow}Game Server Login Token${default}"

+ 1 - 1
lgsm/functions/install_header.sh

@@ -6,7 +6,7 @@
 
 local modulename="INSTALL"
 local commandaction="Install"
-local function_selfname=$(basename "$(readlink -f "${BASH_SOURCE[0]}")")
+local function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
 
 clear
 fn_print_ascii_logo

+ 1 - 1
lgsm/functions/install_logs.sh

@@ -6,7 +6,7 @@
 
 local modulename="INSTALL"
 local commandaction="Install"
-local function_selfname=$(basename "$(readlink -f "${BASH_SOURCE[0]}")")
+local function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
 
 if [ "${checklogs}" != "1" ]; then
 	echo -e ""

+ 1 - 1
lgsm/functions/install_mta_resources.sh

@@ -7,7 +7,7 @@
 
 local modulename="INSTALL"
 local commandaction="Install"
-local function_selfname=$(basename "$(readlink -f "${BASH_SOURCE[0]}")")
+local function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
 
 fn_print_information_nl "${gamename} will not function without resources!"
 echo -e "	* install default resources using ./${selfname} install-default-resources"

+ 1 - 1
lgsm/functions/install_retry.sh

@@ -6,7 +6,7 @@
 
 local modulename="INSTALL"
 local commandaction="Install"
-local function_selfname=$(basename "$(readlink -f "${BASH_SOURCE[0]}")")
+local function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
 
 if fn_prompt_yn "Retry install?" Y; then
 	command_install.sh; core_exit.sh

+ 1 - 1
lgsm/functions/install_server_dir.sh

@@ -6,7 +6,7 @@
 
 local modulename="INSTALL"
 local commandaction="Install"
-local function_selfname=$(basename "$(readlink -f "${BASH_SOURCE[0]}")")
+local function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
 
 echo -e ""
 echo -e "${lightyellow}Server Directory${default}"

+ 1 - 1
lgsm/functions/install_server_files.sh

@@ -6,7 +6,7 @@
 
 local modulename="INSTALL"
 local commandaction="Install"
-local function_selfname=$(basename "$(readlink -f "${BASH_SOURCE[0]}")")
+local function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
 
 fn_install_server_files(){
 	if [ "${shortname}" == "ahl" ]; then

+ 1 - 1
lgsm/functions/install_squad_license.sh

@@ -6,7 +6,7 @@
 
 local modulename="INSTALL"
 local commandaction="Install"
-local function_selfname=$(basename "$(readlink -f "${BASH_SOURCE[0]}")")
+local function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
 
 echo -e ""
 echo -e "${lightyellow}Squad Server License${default}"

+ 1 - 1
lgsm/functions/install_stats.sh

@@ -6,7 +6,7 @@
 
 local modulename="INSTALL"
 local commandaction="Install"
-local function_selfname=$(basename "$(readlink -f "${BASH_SOURCE[0]}")")
+local function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
 
 echo -e ""
 echo -e "${lightyellow}LinuxGSM Stats${default}"

+ 1 - 1
lgsm/functions/install_ts3db.sh

@@ -7,7 +7,7 @@
 
 local modulename="INSTALL"
 local commandaction="Install"
-local function_selfname=$(basename "$(readlink -f "${BASH_SOURCE[0]}")")
+local function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
 
 fn_install_ts3db_mariadb(){
 	if [ ! -f "${serverfiles}/libts3db_mariadb.so" ]; then

+ 1 - 1
lgsm/functions/install_ut2k4_key.sh

@@ -6,7 +6,7 @@
 
 local modulename="INSTALL"
 local commandaction="Install"
-local function_selfname=$(basename "$(readlink -f "${BASH_SOURCE[0]}")")
+local function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
 
 echo -e ""
 echo -e "${lightyellow}Enter ${gamename} CD Key${default}"

+ 1 - 1
lgsm/functions/mods_core.sh

@@ -7,7 +7,7 @@
 
 local modulename="MODS"
 local commandaction="Mods"
-local function_selfname=$(basename "$(readlink -f "${BASH_SOURCE[0]}")")
+local function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
 
 # Files and Directories.
 modsdir="${lgsmdir}/mods"

+ 1 - 1
lgsm/functions/mods_list.sh

@@ -10,7 +10,7 @@
 
 local modulename="MODS"
 local commandaction="List Mods"
-local function_selfname=$(basename "$(readlink -f "${BASH_SOURCE[0]}")")
+local function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
 
 # Get a proper URL for mods that don't provide a good one (optional)
 fn_script_log_info "Retrieving latest mods URLs"

+ 1 - 1
lgsm/functions/update_factorio.sh

@@ -6,7 +6,7 @@
 
 local modulename="UPDATE"
 local commandaction="Update"
-local function_selfname=$(basename "$(readlink -f "${BASH_SOURCE[0]}")")
+local function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
 
 fn_update_factorio_dl(){
 	fn_fetch_file "https://factorio.com/get-download/${downloadbranch}/headless/${factorioarch}" "${tmpdir}" "factorio_headless_${factorioarch}-${remotebuild}.tar.xz"

+ 1 - 1
lgsm/functions/update_minecraft.sh

@@ -6,7 +6,7 @@
 
 local modulename="UPDATE"
 local commandaction="Update"
-local function_selfname=$(basename "$(readlink -f "${BASH_SOURCE[0]}")")
+local function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
 
 fn_update_minecraft_dl(){
 	if [ "${branch}" == "release" ]; then

+ 1 - 1
lgsm/functions/update_minecraft_bedrock.sh

@@ -6,7 +6,7 @@
 
 local modulename="UPDATE"
 local commandaction="Update"
-local function_selfname=$(basename "$(readlink -f "${BASH_SOURCE[0]}")")
+local function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
 
 fn_update_minecraft_dl(){
 	latestmcbuildurl=$(curl -s "https://www.minecraft.net/en-us/download/server/bedrock/" | grep -o 'https://minecraft.azureedge.net/bin-linux/[^"]*zip')

+ 1 - 1
lgsm/functions/update_mta.sh

@@ -6,7 +6,7 @@
 
 local modulename="UPDATE"
 local commandaction="Update"
-local function_selfname=$(basename "$(readlink -f "${BASH_SOURCE[0]}")")
+local function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
 
 fn_update_mta_dl(){
 	fn_fetch_file "http://linux.mtasa.com/dl/multitheftauto_linux_x64.tar.gz" "${tmpdir}" "multitheftauto_linux_x64.tar.gz"

+ 1 - 1
lgsm/functions/update_mumble.sh

@@ -6,7 +6,7 @@
 
 local modulename="UPDATE"
 local commandaction="Update"
-local function_selfname=$(basename "$(readlink -f "${BASH_SOURCE[0]}")")
+local function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
 
 fn_update_mumble_dl(){
 	fn_fetch_file "https://github.com/mumble-voip/mumble/releases/download/${remotebuild}/murmur-static_${mumblearch}-${remotebuild}.tar.bz2" "${tmpdir}" "murmur-static_${mumblearch}-${remotebuild}.tar.bz2"

+ 1 - 1
lgsm/functions/update_steamcmd.sh

@@ -6,7 +6,7 @@
 
 local modulename="UPDATE"
 local commandaction="Update"
-local function_selfname=$(basename "$(readlink -f "${BASH_SOURCE[0]}")")
+local function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
 
 fn_update_steamcmd_dl(){
 	info_config.sh

+ 1 - 1
lgsm/functions/update_ts3.sh

@@ -6,7 +6,7 @@
 
 local modulename="UPDATE"
 local commandaction="Update"
-local function_selfname=$(basename "$(readlink -f "${BASH_SOURCE[0]}")")
+local function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
 
 fn_update_ts3_dl(){
 	if [ "${ts3arch}" == "amd64" ]; then