mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-11 14:02:52 +02:00
lib.sh: simplify singletree()
Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
+1
-2
@@ -223,8 +223,7 @@ e()
|
||||
singletree()
|
||||
{
|
||||
for targetfile in "config/${1}/"*/target.cfg; do
|
||||
[ ! -e "$targetfile" ] && continue
|
||||
[ -f "$targetfile" ] && return 1
|
||||
[ -e "$targetfile" ] && [ -f "$targetfile" ] && return 1
|
||||
done
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user