summaryrefslogtreecommitdiff
path: root/include/tree.sh
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2025-05-14 21:46:44 +0100
committerLeah Rowe <leah@libreboot.org>2025-05-14 21:46:44 +0100
commita8d0777da16cd45248473f5b00f4b8ec120fa4e9 (patch)
tree94859154b20ff1b908624560b5a3c78d9339c707 /include/tree.sh
parent77d33721f3a6a8c4d6b75357c2d31f0f29bf7c55 (diff)
parent46f42291d3c1e9a3e5b34b6bd727f94cd512bc64 (diff)
Merge branch 'master' into 25.06_branch
Diffstat (limited to 'include/tree.sh')
-rw-r--r--include/tree.sh6
1 files changed, 2 insertions, 4 deletions
diff --git a/include/tree.sh b/include/tree.sh
index d4585b92..f44b39cc 100644
--- a/include/tree.sh
+++ b/include/tree.sh
@@ -39,13 +39,11 @@ trees()
fi
project="${OPTARG#src/}"
+ project="${project#config/git/}"
shift 2
done
[ -z "$_f" ] && err "missing flag ($flags)"
- if [ -z "$project" ]; then
- mk $_f $(ls -1 config/git)
- return 1
- fi
+ [ -z "$project" ] && fx_ "x_ ./mk $_f" x_ ls -1 config/git && return 1
[ -f "config/git/$project/pkg.cfg" ] || \
err "config/git/$project/pkg.cfg missing"