From afbaddbf031d6351d87cc9683661c5edec099405 Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Tue, 29 Dec 2015 00:08:19 +0000 Subject: [PATCH] reverted to positive array Denied logic for array caused log check to run multiple times. --- functions/check.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/functions/check.sh b/functions/check.sh index 25716ded6..577ca2780 100644 --- a/functions/check.sh +++ b/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