mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-20 05:36:23 +02:00
lib.sh: simplify singletree()
Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
+1
-3
@@ -148,9 +148,7 @@ chkvars()
|
|||||||
# e.g. coreboot is multi-tree, so 1
|
# e.g. coreboot is multi-tree, so 1
|
||||||
singletree()
|
singletree()
|
||||||
{
|
{
|
||||||
for targetfile in "config/${1}/"*/target.cfg; do
|
( fe_ "exit 1" "config/$1/"*/ -type f -name "target.cfg" ) || return 1
|
||||||
[ -e "$targetfile" ] && [ -f "$targetfile" ] && return 1; :
|
|
||||||
done; :
|
|
||||||
}
|
}
|
||||||
|
|
||||||
fe_()
|
fe_()
|
||||||
|
|||||||
Reference in New Issue
Block a user