lib.sh: condense singletree() a bit
Signed-off-by: Leah Rowe <leah@libreboot.org>audit6
parent
35d09e426a
commit
6fc7cd3c17
|
@ -183,9 +183,8 @@ rmgit()
|
|||
singletree()
|
||||
{
|
||||
for targetfile in "config/${1}/"*/target.cfg; do
|
||||
[ -e "$targetfile" ] || continue
|
||||
[ -f "$targetfile" ] && return 1
|
||||
done
|
||||
[ -e "$targetfile" ] && [ -f "$targetfile" ] && return 1
|
||||
done; return 0
|
||||
}
|
||||
|
||||
download()
|
||||
|
|
Loading…
Reference in New Issue