summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xscript/trees12
1 files changed, 8 insertions, 4 deletions
diff --git a/script/trees b/script/trees
index 78ffaed8..b2b1e561 100755
--- a/script/trees
+++ b/script/trees
@@ -58,8 +58,10 @@ build_projects()
{
[ $# -gt 0 ] && x_ ./update trees $_f $@
- [ "$mode" = "fetch" ] && [ ! -f "CHANGELOG" ] && \
- eval "fetch_project_repo; return 0;"
+ if [ "$mode" = "fetch" ]; then
+ [ -f "CHANGELOG" ] && return 0
+ fetch_project_repo; return 0
+ fi
load_project_config "$cfgsdir"
[ -f "$listfile" ] || listfile="" # optional on single-tree
@@ -124,8 +126,10 @@ handle_defconfig()
handle_src_tree()
{
target_dir="$cfgsdir/$target"
- [ "$mode" = "fetch" ] && [ ! -f "CHANGELOG" ] && \
- eval "fetch_project_trees; return 1;"
+ if [ "$mode" = "fetch" ]; then
+ [ -f "CHANGELOG" ] && return 1
+ fetch_project_trees; return 1
+ fi
load_project_config "$target_dir"
x_ mkdir -p "$elfdir/$target"