lib.sh: simplify singletree()

Signed-off-by: Leah Rowe <leah@libreboot.org>
20240612_branch
Leah Rowe 2024-06-09 10:55:33 +01:00
parent 9cdf419295
commit 26df6e7ab2
1 changed files with 1 additions and 2 deletions

View File

@ -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
}