summaryrefslogtreecommitdiffstats
path: root/remote/setup_target
diff options
context:
space:
mode:
authorJonathan Bauer2013-03-19 16:46:41 +0100
committerJonathan Bauer2013-03-19 16:46:41 +0100
commit86a5a6658eea34d7049f3aa0ee75d2082717430a (patch)
treed795db41d239ce1b52bd9b50a4139ec6d94e8fb9 /remote/setup_target
parentunknown operand fix (diff)
downloadtm-scripts-86a5a6658eea34d7049f3aa0ee75d2082717430a.tar.gz
tm-scripts-86a5a6658eea34d7049f3aa0ee75d2082717430a.tar.xz
tm-scripts-86a5a6658eea34d7049f3aa0ee75d2082717430a.zip
unset all REQUIRED_* variables before reading a config
Diffstat (limited to 'remote/setup_target')
-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"