lib.sh: simplify singletree()

Signed-off-by: Leah Rowe <leah@libreboot.org>
audit2-merge1
Leah Rowe 2024-06-09 10:55:33 +01:00 committed by Leah Rowe
parent 90a8ef90b0
commit e8b1d45631
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
}