diff options
author | Jonathan Bauer | 2013-03-19 16:46:41 +0100 |
---|---|---|
committer | Jonathan Bauer | 2013-03-19 16:46:41 +0100 |
commit | 86a5a6658eea34d7049f3aa0ee75d2082717430a (patch) | |
tree | d795db41d239ce1b52bd9b50a4139ec6d94e8fb9 /remote/setup_target | |
parent | unknown operand fix (diff) | |
download | tm-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-x | remote/setup_target | 12 |
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" |