diff options
author | Leah Rowe <leah@libreboot.org> | 2024-06-27 14:06:41 +0100 |
---|---|---|
committer | Leah Rowe <leah@libreboot.org> | 2024-06-27 14:06:41 +0100 |
commit | 6fc7cd3c17f2284768e4a0416ecaa67f71da8052 (patch) | |
tree | fa158373e64e92e10a2ca70dbd3a47601d41b6c1 /include | |
parent | 35d09e426a82f805001c371006f59fffe4b0450e (diff) |
lib.sh: condense singletree() a bit
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'include')
-rwxr-xr-x | include/lib.sh | 5 |
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() |