lib.sh: simplify singletree()
Signed-off-by: Leah Rowe <leah@libreboot.org>20240612_branch
parent
9cdf419295
commit
26df6e7ab2
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue