Daniel Gibbs 10 лет назад
Родитель
Сommit
93e6421e49
2 измененных файлов с 5 добавлено и 3 удалено
  1. 3 3
      functions/check.sh
  2. 2 0
      functions/update_functions.sh

+ 3 - 3
functions/check.sh

@@ -25,10 +25,10 @@ if [ "${function_selfname}" != "install" ]||[ "${function_selfname}" != "auto-in
 	check_systemdir.sh
 fi
 
-local allowed_commands_array=( command_backup.sh command_console.sh command_debug.sh command_details.sh command_unreal2_maps.sh command_ut99_maps.sh command_monitor.sh command_start.sh command_stop.sh update_check.sh command_validate.sh )
-for allowed_command in "${allowed_commands_array[@]}"
+local denied_commands_array=( command_install.sh command_details.sh compress_unreal2_maps.sh compress_ut99_maps.sh )
+for denied_command in "${denied_commands_array[@]}"
 do
-	if [ "${allowed_command}" == "${function_selfname}" ]; then
+	if [ "${denied_command}" != "${function_selfname}" ]; then
 		check_logs.sh
 	fi
 done

+ 2 - 0
functions/update_functions.sh

@@ -6,6 +6,8 @@ lgsm_version="271215"
 
 # Description: Deletes the functions dir to allow re-downloading of functions from GitHub.
 
+function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
+check.sh
 fn_printdots "Updating functions"
 fn_scriptlog "Updating functions"
 sleep 1