summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xremote/setup_target12
1 files changed, 5 insertions, 7 deletions
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"