Просмотр исходного кода

reverted to positive array

Denied logic for array caused log check to run multiple times.
Daniel Gibbs 10 лет назад
Родитель
Сommit
afbaddbf03
1 измененных файлов с 5 добавлено и 3 удалено
  1. 5 3
      functions/check.sh

+ 5 - 3
functions/check.sh

@@ -25,10 +25,12 @@ if [ "${function_selfname}" != "command_install.sh" ]; then
 	check_systemdir.sh
 fi
 
-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[@]}"
+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 update_functions.sh command_email_test.sh )
+for allowed_command in "${allowed_commands_array[@]}"
 do
-	if [ "${denied_command}" != "${function_selfname}" ]; then
+	if [ "${allowed_command}" == "${function_selfname}" ]; then
+		:
+	else
 		check_logs.sh
 	fi
 done