lib.sh: simplify singletree()
Signed-off-by: Leah Rowe <leah@libreboot.org>25.04_branch
parent
9d91c3da60
commit
e2f6e7a410
|
@ -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_()
|
||||||
|
|
Loading…
Reference in New Issue