lib.sh: simplify singletree()

Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
Leah Rowe
2025-05-05 15:40:08 +01:00
parent 62ec3dac07
commit 437ac2454c
+1 -3
View File
@@ -148,9 +148,7 @@ chkvars()
# e.g. coreboot is multi-tree, so 1
singletree()
{
for targetfile in "config/${1}/"*/target.cfg; do
[ -e "$targetfile" ] && [ -f "$targetfile" ] && return 1; :
done; :
( fe_ "exit 1" "config/$1/"*/ -type f -name "target.cfg" ) || return 1
}
fe_()