From 86a5a6658eea34d7049f3aa0ee75d2082717430a Mon Sep 17 00:00:00 2001 From: Jonathan Bauer Date: Tue, 19 Mar 2013 16:46:41 +0100 Subject: unset all REQUIRED_* variables before reading a config --- remote/setup_target | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'remote') diff --git a/remote/setup_target b/remote/setup_target index e3273f4d..eed033fe 100755 --- a/remote/setup_target +++ b/remote/setup_target @@ -22,13 +22,11 @@ initial_checks () { read_config () { - unset REQUIRED_BINARIES - unset REQUIRED_LIBRARIES - unset REQUIRED_DIRECTORIES - unset REQUIRED_FILES - unset REQUIRED_MODULES - unset REQUIRED_PACKAGES - unset REQUIRED_DEPENDENCIES + + # unset previous variables from other config files + for VARNAME in "${!REQUIRED_*}"; do + unset $VARNAME + done local MODULE_CONFIG="${MODULE_DIR}/${MODULE}.conf" -- cgit v1.2.3-55-g7522