summaryrefslogtreecommitdiff
path: root/script/update/trees
diff options
context:
space:
mode:
Diffstat (limited to 'script/update/trees')
-rwxr-xr-xscript/update/trees5
1 files changed, 2 insertions, 3 deletions
diff --git a/script/update/trees b/script/update/trees
index 88f22c31..64958522 100755
--- a/script/update/trees
+++ b/script/update/trees
@@ -145,9 +145,8 @@ handle_src_tree()
. "${target_dir}/target.cfg" || \
err "handle_src_tree ${target_dir}: cannot load target.cfg"
- for ix in arch tree; do
- eval "[ -z \"\${$ix}\" ] && err \"handle_src: $ix undefined\""
- done
+ [ -z "${arch}" ] && err "handle_src_tree $project/$tree: arch unset"
+ [ -z "${tree}" ] && err "handle_src_tree $project/$tree: tree unset"
codedir="src/${project}/${tree}"