lib.sh: simplify singletree()

Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
Leah Rowe
2024-06-09 10:55:33 +01:00
parent 9cdf419295
commit 26df6e7ab2
+1 -2
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
}