summaryrefslogtreecommitdiff
path: root/script/trees
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2025-04-12 13:07:27 +0100
committerLeah Rowe <leah@libreboot.org>2025-04-12 13:07:27 +0100
commite5262da4be7f1d5bd88b3bec0c600e92643b9f20 (patch)
treebe15ea01b5c0203b9c0d0066583028014761680e /script/trees
parent51798278397ce0bc55648feee4e2dd7e4f12ebf0 (diff)
trees: tidy up configure_project()
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'script/trees')
-rwxr-xr-xscript/trees9
1 files changed, 4 insertions, 5 deletions
diff --git a/script/trees b/script/trees
index 07991199..3397f301 100755
--- a/script/trees
+++ b/script/trees
@@ -166,12 +166,11 @@ configure_project()
[ -n "$tree" ] && mdir="$mdir/$tree"
[ -f "CHANGELOG" ] || check_project_hashes
- if [ "$do_make" != "n" ]; then
- x_ ./mk -f "$project" "$target"
- return 0
+ if [ "$do_make" = "n" ]; then
+ [ -f "CHANGELOG" ] || fetch_${cmd#build_}
+ return 1
fi
- [ -f "CHANGELOG" ] || fetch_${cmd#build_}
- return 1
+ x_ ./mk -f "$project" "$target"
}
build_dependencies()