summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2024-06-27 14:06:41 +0100
committerLeah Rowe <leah@libreboot.org>2024-06-27 14:06:41 +0100
commit6fc7cd3c17f2284768e4a0416ecaa67f71da8052 (patch)
treefa158373e64e92e10a2ca70dbd3a47601d41b6c1 /include
parent35d09e426a82f805001c371006f59fffe4b0450e (diff)
lib.sh: condense singletree() a bit
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'include')
-rwxr-xr-xinclude/lib.sh5
1 files changed, 2 insertions, 3 deletions
diff --git a/include/lib.sh b/include/lib.sh
index 5b21d81c..a1b6aa0d 100755
--- a/include/lib.sh
+++ b/include/lib.sh
@@ -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()