From 93e6421e49a57eb84bb0fed6148dd7b7a8e0648b Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Mon, 28 Dec 2015 23:38:58 +0000 Subject: [PATCH] reversed check to deny --- functions/check.sh | 6 +++--- functions/update_functions.sh | 2 ++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/functions/check.sh b/functions/check.sh index 1c7f78e6e..030da8f30 100644 --- a/functions/check.sh +++ b/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 diff --git a/functions/update_functions.sh b/functions/update_functions.sh index 746db023a..350714ed0 100644 --- a/functions/update_functions.sh +++ b/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